On Sun, Mar 10, 2019 at 2:06 PM Rasmus Villemoes <li...@rasmusvillemoes.dk> wrote: > > IIRC, this has been attempted before, causing a userspace regression > because some sysfs/procfs file matched with %u or %x, and somebody wrote > -1 to get 0xffffffff .
.. which is correct anyway. That's how scanf is supposed to work. If somebody needs overflow checking, they shouldn't be using scanf. Linus