summaryrefslogtreecommitdiff
path: root/sal/osl/w32/salinit.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-02-13 21:49:52 +0100
committerEike Rathke <erack@redhat.com>2013-02-15 13:57:27 +0100
commitcf8318429e3177574f9d60042c402401f484bf17 (patch)
tree4fe007544c1c3bf02ca703d4cfaca26f0cd250ea /sal/osl/w32/salinit.cxx
parent8a07032d01aa59fd94c393669d8ac4b8443acb2b (diff)
prevent out-of-bounds buffer writes in EnumLocalesParams
osl_getTextEncodingFromLocale() In case of the Language code being longer than 2 characters the string written to the struct EnumLocalesParams member was not 0-terminated if a Country code was also given (consecutive fields in the struct) unless the struct was packed in 4-byte alignment and luckily contained a 0 as the 4th byte. The locale could not had been matched in these cases. In case of a sufficiently long language or country argument the entire EnumLocalesParams struct could had been overflown. Change-Id: I1ec67ad0b3d12b0fa944d7e759bb5cb701842e39
Diffstat (limited to 'sal/osl/w32/salinit.cxx')
0 files changed, 0 insertions, 0 deletions