Re: [ft-devel] [freetype2] master fc11af1: Various minor clang fixes.

2016-01-20 Thread Werner LEMBERG
> The variable, gxvalid->statetable.entry_glyphoffset_fmt, it is set > by gxv module internally not imported from external font file (thus, > malicious input data cannot set the value to the undefined > value). So it is OK to remove the default case. Done. Werner

Re: [ft-devel] [freetype2] master fc11af1: Various minor clang fixes.

2016-01-20 Thread suzuki toshiya
Sorry for lated response about this issue. Yes, about this case, I agree with the removal of redundant default case after the complete list of possible enum values. The variable, gxvalid->statetable.entry_glyphoffset_fmt, it is set by gxv module internally not imported from external font file

Re: [ft-devel] [freetype2] master fc11af1: Various minor clang fixes.

2016-01-20 Thread Sean McBride
On Wed, 20 Jan 2016 13:36:06 +0100, Werner LEMBERG said: > >>> The `default' case is redundant, since all possible enum values are >>> covered in the `switch' statement. >> >> I personally prefer having code in front of me that I can prove >> correct, than having to go fish for all the places

Re: [ft-devel] [freetype2] master fc11af1: Various minor clang fixes.

2016-01-20 Thread Behdad Esfahbod
On 16-01-20 12:03 PM, Werner LEMBERG wrote: > >>> +#if 0 >>>default: >>> GXV_SET_ERR_IF_PARANOID( FT_INVALID_FORMAT ); >>> goto Exit; >>> +#endif >> >> What's this?! > > The `default' case is redundant, since all possible enum values are > covered in the `switch'

Re: [ft-devel] [freetype2] master fc11af1: Various minor clang fixes.

2016-01-20 Thread Behdad Esfahbod
On 16-01-19 07:16 PM, Werner LEMBERG wrote: > +#if 0 >default: > GXV_SET_ERR_IF_PARANOID( FT_INVALID_FORMAT ); > goto Exit; > +#endif What's this?! ___ Freetype-devel mailing list Freetype-devel@nongnu.org

Re: [ft-devel] [freetype2] master fc11af1: Various minor clang fixes.

2016-01-20 Thread Werner LEMBERG
>> +#if 0 >>default: >> GXV_SET_ERR_IF_PARANOID( FT_INVALID_FORMAT ); >> goto Exit; >> +#endif > > What's this?! The `default' case is redundant, since all possible enum values are covered in the `switch' statement. Toshiya-san, shall I completely remove this code?

Re: [ft-devel] [freetype2] master fc11af1: Various minor clang fixes.

2016-01-20 Thread Werner LEMBERG
>> The `default' case is redundant, since all possible enum values are >> covered in the `switch' statement. > > I personally prefer having code in front of me that I can prove > correct, than having to go fish for all the places that value in the > switch statement is set to convince myself