diff options
author | Joel Croteau <jcroteau@gmail.com> | 2014-02-19 00:45:51 -0800 |
---|---|---|
committer | Joel Croteau <jcroteau@gmail.com> | 2014-02-19 01:17:17 -0800 |
commit | c84c6eda17a6ac5e9c56bbc76839c472238a97c4 (patch) | |
tree | 96567bfc014aee477f6fa0cd995cce46d6464233 /tools/shared.py | |
parent | d1c09ebd46b35ed2b343ebab9afdd1dfc99c63b6 (diff) |
Provide better implementation of localeconv and fix logic error in allocate
This allocates more space to the structure returned by localeconv. This fixes
an error caused by some locale functions (specifically moneypunct_byname::init
trying to access members of the lconv struct beyond the first and dereferencing
invalid pointers. This also fixes a bug in allocate() which occurred when
allocating a single-typed array of data of type size greater than one byte.
The function had been incrementing its index into the array by the byte size,
causing it to skip elements in arrays of larger type sizes. Fixes issue #2134.
Diffstat (limited to 'tools/shared.py')
0 files changed, 0 insertions, 0 deletions