> You can search a source file for instances of it with this regex:
>  pcregrep -M 'sprintf\s*\(\s*([^,]*)\s*,\s*"%s[^"]*"\s*,\s*\1\s*,'

the regexp doesn't search for snprintf, and doesn't look for functions
spanning more than one line.

> I’ll stop filing bugs for now and see what happens with these ones.

the bug reports are ok, but separate reports with a common tag should be
filed instead.

-- 
Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source 
patch
https://bugs.launchpad.net/bugs/305901
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to