laviniuolaru / minini

Automatically exported from code.google.com/p/minini
Other
0 stars 0 forks source link

cash_fush() causing assert when trying to write to a corrupted .ini file. #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. A corrupted .ini file is existing on the filesystem (see file attached)

2. A setting is written to the .ini file. Note that this was existing in the 
ini file, but file corruption has overwritten it with partly another .ini file, 
and part garbage. So it's realistically writing a new setting.

What is the expected output? What do you see instead?
An assert in "cache_flush()" is triggered. (inside the while() loop). 

What version of the product are you using? On what operating system?
Latest version. Using an embedded platform.

Please provide any additional information below.

The code is running in an embedded environment (ARM Cortex-M4) using MQX as 
RTOS. 

Original issue reported on code.google.com by johan.sc...@eroad.co.nz on 31 Mar 2014 at 1:51

GoogleCodeExporter commented 9 years ago
Please verify the fix in revision #49.
I failed to reproduce it, but from the description it is clear where the error 
must be.

Original comment by thiadmer...@gmail.com on 30 Apr 2014 at 10:11