What steps will reproduce the problem?
1. Read a section-key value. This first read is performed with success
2. on the second or third access, the minini return an error.
What is the expected output? What do you see instead?
I expected that the minIni get the ini file value, but it is getting the
default value given by the caller.
What version of the product are you using? On what operating system?
I'm using the version 1.12 of minIni on a bare-metal embedded system.
Please provide any additional information below.
I notice that the functions ini_browse, ini_puts and getkeystring are using a
local buffer of INI_BUFFERSIZE bytes called LocalBuffer. In my application I
should use configurations strings of 120 bytes and, because this, I use the
INI_BUFFERSIZE macro with a value of 128.
In this situation I got the errors enumerated on the previous sections because
the local buffer was corrupting the heap.
For fix this bug, I created a global buffer on the scope of minIni library and,
where the minini is using the LocalBuffer buffer, I'm using this global buffer
instead of the local buffer. This global buffer is used in ini_puts and
getkeystring functions, and I'm didn't uning the ini_browse function...
Original issue reported on code.google.com by rdmen...@gmail.com on 12 Feb 2015 at 1:55
Original issue reported on code.google.com by
rdmen...@gmail.com
on 12 Feb 2015 at 1:55