platform_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 libsparse: add function to resparse a file and a utility to use it 2012-07-09 22:09:37 -07:00
defs.h libsparse: deal with build warning messages 2014-02-28 08:08:01 -08:00
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 libsparse: rename symbols that conflict with libext4_utils 2012-07-09 22:09:37 -07:00
simg2img.c libsparse: add function to resparse a file and a utility to use it 2012-07-09 22:09:37 -07:00
simg2simg.c libsparse: add function to resparse a file and a utility to use it 2012-07-09 22:09:37 -07:00
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 system/core: move libsparse into system/core 2012-07-09 22:09:36 -07:00
sparse_crc32.h libsparse: Wrap sparse_crc32.h to be C++ compatible. 2015-07-11 12:48:42 -07:00
sparse_defs.h libsparse: add function to resparse a file and a utility to use it 2012-07-09 22:09:37 -07:00
sparse_err.c libsparse: add error reporting functions 2012-07-09 22:09:37 -07:00
sparse_file.h libsparse: add error reporting functions 2012-07-09 22:09:37 -07:00
sparse_format.h system/core: move libsparse into system/core 2012-07-09 22:09:36 -07:00
sparse_read.c Add verbose param to sparse_file_import_auto 2015-03-31 12:09:37 -07:00