Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 16 Nov 2012 16:49:31 +0100
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: Trouble with sscanf

* Szabolcs Nagy <nsz@...t70.net> [2012-11-16 16:39:21 +0100]:
> i guess musl returns an early matching error
> but they don't check for that

sorry there is no matching error

"If a length modifier appears with any conversion specifier other than as specified above, the behavior is undefined."
http://port70.net/~nsz/c/c11/n1570.html#7.21.6.2p11

so "%Lu" format in scanf invokes undefined behaviour

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.