Commit 24d3ee0d authored by Committed by Alan Coopersmith
Tighten out-of-range comparisons.
[For all of these, LONG_MAX was the correct value to prevent overflows for the recent CVEs. Lowering to INT_MAX catches buggy replies from the server that 32-bit clients would reject but 64-bit would accept, so we catch bugs sooner, and really, no sane & working server should ever report more than 2gb of extension names, font path entries, key modifier maps, etc. -alan- ] Reviewed-by: Alan Coopersmith <email@example.com> Signed-off-by: Alan Coopersmith <firstname.lastname@example.org>
Showing with 4 additions and 4 deletions