Re:Pre-auth RCE in Nginx HTTP/2 handling
by codedokode on Wednesday November 18, 2026 @11:46AM
(#50548554)
Integer underflow again. Programming languages should trap on integer overflows and not ignore them. Don't care about legacy CPUs not having a trap for this - they will go sooner or later.
[ Parent
| on HN ]
Re:Pre-auth RCE in Nginx HTTP/2 handling
by deathanatos on Wednesday November 18, 2026 @12:35PM
(#50549341)
Rust has a compile time option, though to my immense disappointment, it defaults to on only in debug mode. (You can opt into it for release, if desired.)
Python simply can't overflow, since its integral type is not a fixed width.
But it is the sort of correctness thing that I do wish languages would pay more attention to.
Re:Pre-auth RCE in Nginx HTTP/2 handling
by insanitybit on Wednesday November 18, 2026 @01:24PM
(#50550030)
In Rust's case it just matters a lot less since bounds checks are still present. But I do think int under/overflows are probably one of the scarier issues in the language.
Re:Pre-auth RCE in Nginx HTTP/2 handling
by codedokode on Wednesday November 18, 2026 @09:57PM
(#50555499)
Overflows are dangerous by itself. Assume you keep the order total price as uint32. Someone orders a spaceship for 2.2B credits, and then adds another one which is not an expected scenario. The total counter overflows and now you have sold 2 expensive spaceships at 99% discount.
Re:Pre-auth RCE in Nginx HTTP/2 handling
by TZubiri on Wednesday November 18, 2026 @01:32PM
(#50550159)
>Python simply can't overflow, since its integral type is not a fixed width.
Python master race