Re: cppcheck: VDR 1.7.18: [timers.c:53]: (error) snprintf size is out of bounds

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

 



Am Wed, 15 Jun 2011 18:34:59 +0200
schrieb Klaus Schmidinger <Klaus.Schmidinger@xxxxxxx>:

> ...this should be
> 
>    sizeof(file) - 1
> 
> Thanks for the bug report.

This is no bug. The size parameter includes the '\0' byte.

Gerald

_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux