[PATCH] detect null sprintf pointers (PR 78519)

Martin Sebor msebor@gmail.com
Thu Dec 15 04:22:00 GMT 2016


>> I suppose setting a range seemed better than giving up.  Then again,
>> since with this patch GCC will warn on null %s pointers there may
>> not be much point in trying to see if there's also some other
>> problem after that, except perhaps in code that deliberately relies
>> on the Glibc feature.  I'd be fine with just stopping at this point
>> if you prefer.
> I think I'd rather just stop at this point.  I don't think we're gaining
> much, if anything and encoding the glibc-ism in here seems like a mistake.

That's fine.  Attached is an updated patch with this change.

Thanks
Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-78519.diff
Type: text/x-patch
Size: 9021 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161215/d923d56b/attachment.bin>


More information about the Gcc-patches mailing list