net: use saturating_sub when substracting durations to prevent underflows (#33341)

* net: use saturating_sub when substracting durations to prevent underflows

Signed-off-by: webbeef <me@webbeef.org>

* Add regression test. (#1)

* Add regression test.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

---------

Signed-off-by: webbeef <me@webbeef.org>
Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
webbeef 2024-09-08 00:36:27 -07:00 committed by GitHub
parent 85823edd01
commit f6ae050077
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 5 deletions

View file

@ -1,5 +1,16 @@
{
"items": {
"crashtest": {
"mozilla": {
"cache_old_response-crash.html": [
"d14e7c830f52bb77e81d91b533e0ce6d4a1ede82",
[
null,
{}
]
]
}
},
"reftest": {
"css": {
"abs-overflow-stackingcontext.html": [
@ -10507,6 +10518,10 @@
"59562a8c9c39130cad411815059513c4ce0a7c04",
[]
],
"old_page.py": [
"3f096b6f5a6611f97f625d8a0420aaa96f2e2b01",
[]
],
"partial_shadow_dom_layout_style_ref.html": [
"bf40d2cc35b6b2c1e32afffa0651cb1b26e41fe8",
[]