c227a1d855
This patch is used to fix two Bugs in backed_block.c First, fix wrong comparing string way: we should use strcmp rather than just compare their address. Second, fix using illegal memory risk in bbl->last_used pointer. When entering queue_bb function, bbl->last_used = new_bb, but in the following code if queue_bb(xx, bb, new_bb) return ok, the space of new_bb is released. So next time, if you use bbl->last_used pointer, may cause segment fault ! Change-Id: I6abb505f9b903b697448639fc64fb7518df5cca1 |
||
---|---|---|
.. | ||
include/sparse | ||
Android.mk | ||
append2simg.c | ||
backed_block.c | ||
backed_block.h | ||
defs.h | ||
img2simg.c | ||
output_file.c | ||
output_file.h | ||
simg2img.c | ||
simg2simg.c | ||
simg_dump.py | ||
sparse.c | ||
sparse_crc32.c | ||
sparse_crc32.h | ||
sparse_defs.h | ||
sparse_err.c | ||
sparse_file.h | ||
sparse_format.h | ||
sparse_read.c |