mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-16 05:25:25 +00:00
We already know the length of these substrings, so there's no need to check their lengths using strlen in the StringView(char*) constructor. This patch also removes an accidental 1-byte OOB read that was left over from when this method received null-terminated char pointers instead of string views, as well removes the unnecessary lambda call (two of the checks were impossible, and this was only called in one place, so we can just inline it)
15 KiB
15 KiB