Skip to content
Commit ef21bd2d authored by DJ Delorie's avatar DJ Delorie
Browse files

loadarchive: guard against locale-archive corruption (Bug #25115)



_nl_load_locale_from_archive() checks for a zero size, but
divides by both (size) and (size-2).  Extend the check to
guard against a size of two or less.

Tested by manually corrupting locale-archive and running a program
that calls setlocale() with LOCPATH unset (size is typically very
large).

Reviewed-by: default avatarCarlos O'Donell <carlos@redhat.com>
parent a807613b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment