android_system_core/libsparse
lei wang wang c227a1d855 libsparse: use strcmp and validate last_used pointer
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
2015-08-21 14:23:31 +00:00
..
include/sparse Add verbose param to sparse_file_import_auto 2015-03-31 12:09:37 -07:00
Android.mk Cleanup libsparse Android.mk 2014-12-12 04:19:27 +00:00
append2simg.c Add verbose param to sparse_file_import_auto 2015-03-31 12:09:37 -07:00
backed_block.c libsparse: use strcmp and validate last_used pointer 2015-08-21 14:23:31 +00:00
backed_block.h
defs.h
img2simg.c libsparse: turn on -Werror 2014-05-07 16:56:22 -07:00
output_file.c libsparse: turn on -Werror 2014-05-07 16:56:22 -07:00
output_file.h
simg2img.c
simg2simg.c
simg_dump.py libsparse: fix crc chunk parsing in simg_dump.py 2015-04-30 16:36:17 +00:00
sparse.c libsparse: move_chunks_up_to_len() does not account skip chunks 2015-04-08 10:10:17 +02:00
sparse_crc32.c
sparse_crc32.h libsparse: Wrap sparse_crc32.h to be C++ compatible. 2015-07-11 12:48:42 -07:00
sparse_defs.h
sparse_err.c
sparse_file.h
sparse_format.h
sparse_read.c Add verbose param to sparse_file_import_auto 2015-03-31 12:09:37 -07:00