[x264-devel] [PATCH] Fix free of invalid pointer for tune tmpvalue.

Måns Rullgård mans at mansr.com
Fri Jun 11 12:31:24 CEST 2010


"Klaue, Jirka" <Jirka.Klaue at eads.net> writes:

>> >> It's probably related to some relatively recent glibc or gcc change
>> >> (bug?), but I don't follow the changes too closely.
>> >
>> > I'm pretty sure char is always 8 bits.
>> 
>> POSIX requires 8-bit char, but not C.  However, sizeof(char) is 1 by
>> definition.
>
> And CHAR_BIT (limits.h) will tell you how man bits are in a char.
> I'd be surprised, if its not 8.

In POSIX it is required to be 8.  C does not make that requirement,
and there are systems with other values.  None that we care about
though.

-- 
Måns Rullgård
mans at mansr.com


More information about the x264-devel mailing list