]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
Fix all usages of setlocale: setlocale might (and on linux DOES)
authorPeter Stamfest <peter@stamfest.at>
Sun, 16 Mar 2014 16:36:23 +0000 (17:36 +0100)
committerPeter Stamfest <peter@stamfest.at>
Sun, 16 Mar 2014 16:54:46 +0000 (17:54 +0100)
commit0e1608b77ca017b24917877488eacbbf2167c375
treee6eaf7e428be3653d3ea092b8e975f6c2b9dd0aa
parent001bdff8297f64029f43096e4d5d4c4485ccd62a
Fix all usages of setlocale: setlocale might (and on linux DOES)
return a pointer to memory handled internally by libc, calling
setlocale twice and using the data returned from the first call
later on causes access to already free'd memory. This was clearly
seen through valgrind. Eg. use

  TESTS_STYLE=valgrind ./tests/tune2

with this cs backed-out and you will see valgrind problems
related to setlocale.
src/rrd_create.c
src/rrd_dump.c
src/rrd_graph.c
src/rrd_graph_helper.c
src/rrd_modify.c
src/rrd_rpncalc.c
src/rrd_tune.c
src/rrd_update.c
src/rrd_xport.c
tests/valgrind-supressions