aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/Message.cpp
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2013-06-25 18:34:32 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:27 +0200
commitac3d26251f8de17839dbdada457ffcd670338d0a (patch)
tree7ac7dd5f34d7ba40df25b550028f2baead126532 /nxcomp/Message.cpp
parent61fdf93ef56818c081fb775a17fdc513315957c3 (diff)
downloadnx-libs-ac3d26251f8de17839dbdada457ffcd670338d0a.tar.gz
nx-libs-ac3d26251f8de17839dbdada457ffcd670338d0a.tar.bz2
nx-libs-ac3d26251f8de17839dbdada457ffcd670338d0a.zip
Fix out-of-range comparison in _XF86BigfontQueryFont
clang complained (correctly): warning: comparison of constant 768614336404564650 with expression of type 'CARD32' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare] [While LONG_MAX is correct, since it's used in size_t math, the numbers have to be limited to 32-bit range to be usable by 32-bit clients, and values beyond that range are far more likely to be bugs in the data from the server than valid numbers of characters in a font. -alan- ] Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nxcomp/Message.cpp')
0 files changed, 0 insertions, 0 deletions