Skip to content

intl: fix limit calculation

Rodrigo Muino Tomonari requested to merge github/fork/mhdawson/coverity-7 into master

Coverity reported that the use of sizeof along with pointer arithmetic was likely an error as the pointer arithmetic would already be accounting for the size of what the pointer points to.

Looking at the code that looked right but removing the extra sizeOf caused tests to fail.

Looking more closely it seems like we were not allocating a big enough buffer but the extra sizeof was allowing us to convert even though it might have been corrupting memory.

Signed-off-by: Michael Dawson mdawson@devrus.com

Merge request reports

Loading