mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-26 20:55:35 +03:00
AK: Fix obvious bad vector access in IPv4Address::from_string()
Fixes #3137.
This commit is contained in:
parent
2336c62901
commit
6b8807be6e
Notes:
sideshowbarker
2024-07-19 03:38:50 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6b8807be6ea
@ -86,7 +86,7 @@ public:
|
||||
a = 0;
|
||||
b = 0;
|
||||
c = 0;
|
||||
d = parts[1].to_uint().value_or(256);
|
||||
d = parts[0].to_uint().value_or(256);
|
||||
} else if (parts.size() == 2) {
|
||||
a = parts[0].to_uint().value_or(256);
|
||||
b = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user