Re: memset bugs.

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

 



On Wed, 2009-11-25 at 23:39 -0500, Tom Lane wrote:
> John Reiser <jreiser@xxxxxxxxxxxx> writes:
> > On 11/25/2009 02:03 PM, Dave Jones wrote:
> >> A zero sized memset is always a bug.
> 
> > No, memset(,,0) is not always a bug.
> 
> I think it's reasonably safe to assume that a *literal constant* zero in
> the third argument is a bug.  Whether the header macros can distinguish
> that from compile-time-constant expressions is an interesting question,
> but if they can, +1 for throwing an error.

I logged some time ago a trivial patch of
https://bugzilla.redhat.com/show_bug.cgi?id=532492 which is apparently
in rawhide now to generally avoid a warning on memset(foo, 0, 0)

C.

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux