[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#182277: gcc-3.2: Should print a warning when using (v)sprintf.



On Mon, Feb 24, 2003 at 12:28:44AM -0800, Alexander Hvostov wrote:
> As noted in the corresponding man page, the 'sprintf' and 'vsprintf' functions are
> insecure, and should not be used. I suggest that gcc print a warning when compiling
> code in which they are used, as it already does with 'gets' (also insecure).

It's usually glibc+ld that print those messages, not the compiler.

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams



Reply to: