mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Fix bad vector access in two-part IPv4 address parsing
This commit is contained in:
parent
21bb269919
commit
28c68fb241
Notes:
sideshowbarker
2024-07-19 03:39:58 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/28c68fb2417
1 changed files with 2 additions and 2 deletions
|
@ -88,10 +88,10 @@ public:
|
|||
c = 0;
|
||||
d = parts[1].to_uint().value_or(256);
|
||||
} else if (parts.size() == 2) {
|
||||
a = parts[1].to_uint().value_or(256);
|
||||
a = parts[0].to_uint().value_or(256);
|
||||
b = 0;
|
||||
c = 0;
|
||||
d = parts[2].to_uint().value_or(256);
|
||||
d = parts[1].to_uint().value_or(256);
|
||||
} else if (parts.size() == 3) {
|
||||
a = parts[0].to_uint().value_or(256);
|
||||
b = parts[1].to_uint().value_or(256);
|
||||
|
|
Loading…
Reference in a new issue