GNOME Bugzilla – Bug 771223
integer truncation in /gllib/uniname/uninames.h
Last modified: 2016-09-12 07:47:42 UTC
The relevant compilation output from gcc6. The max possible value of uint16_t is 65535. In file included from /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uniname.c:38:0: /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uninames.h:11809:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] { 66782, 11482 }, ^~~~~ /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uninames.h:11810:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] { 68770, 11624 }, ^~~~~ /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uninames.h:11811:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] { 69220, 11654 }, ^~~~~ /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uninames.h:11812:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] { 70340, 11724 }, ^~~~~ /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uninames.h:11813:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] { 70680, 11744 }, ^~~~~ /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uninames.h:11814:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] { 71058, 11765 }, ^~~~~ /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uninames.h:11815:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] { 71210, 11773 }, ^~~~~ /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uninames.h:11816:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] { 71230, 11774 }, ^~~~~ /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uninames.h:11817:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] { 71293, 11777 }, ^~~~~ /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uninames.h:11818:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] { 71337, 11779 }, ^~~~~ /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uninames.h:11819:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] { 71360, 11780 }, ^~~~~ /home/sadiq/jhbuild/checkout/gnome-characters/gllib/uniname/uninames.h:11820:5: warning: large integer implicitly truncated to unsigned type [-Woverflow] { 71408, 11782 } ^~~~~
Created attachment 335337 [details] [review] build: Regenerate uninames.h To avoid integer overflow in the unicode_name_by_length table.
Thanks for pointing that out. Attachment 335337 [details] pushed as ca533b3 - build: Regenerate uninames.h