History log of /system/extras/ext4_utils/include/ext4_utils/ext4_utils.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
53bb71bb6ed73528f237e8621320d6e6e4403a8e 20-Jan-2018 Ivan Lozano <ivanlozano@google.com> Fix overflow sanitizer in ext4_utils.

The overflow sanitizer was causing the following runtime errors:

runtime error: unsigned integer overflow: 1048576 * 1048576 cannot be
represented in type 'unsigned int'

runtime error: unsigned integer overflow: 0 - 1 cannot be represented
in type 'unsigned int'

Use u64 rather than u32 and explicitly cast aux_info.groups to an int
before passing it to ext4_bg_has_super_block.

Bug: 72226337
Test: Boots without runtime errors.
Change-Id: I12fc37e4f0956ca4367209d8efde3e0ecba15114
/system/extras/ext4_utils/include/ext4_utils/ext4_utils.h
7a837fcd6e9c0e0219f743052c78cc1c5988dfaf 03-Nov-2017 Jin Qian <jinqian@google.com> ext4_utils: remove dead code from libext4_utils

Those code were used by make_ext4fs, which has been deleted.

Bug: 64395169
Change-Id: Icf5c03563717f97c30bd45a7944378684e574001
/system/extras/ext4_utils/include/ext4_utils/ext4_utils.h
7c2d21b4c28360f5e058e1632d87028f6b43e90a 02-Nov-2017 Jin Qian <jinqian@google.com> ext4_utils: delete make_ext4fs relavant code and script

make_ext4fs has been replaced with mke2fs.

Bug: 64395169
Change-Id: Iad3a8346ca211e4d5a5ab7046c2bdd199292a867
/system/extras/ext4_utils/include/ext4_utils/ext4_utils.h
b6346d2e2ede70a986068f9bcff93fabdce7bd75 03-Oct-2017 Andreas Huber <andih@google.com> Fix mac build.

"u64" is either an unsigned long (in __LP64__ builds) or
an unsigned long long (otherwise). This CL adds a format string
"PRIext4u64" to be used in place of "PRIu64" when referring to a
variable of type "u64".

related-to-build
Test: make

Change-Id: I6ef911dda3ebdcc0f895c54325b8a82b57a62ee6
/system/extras/ext4_utils/include/ext4_utils/ext4_utils.h
d43cc68c4d4053f8b9855462e428b0749c088a17 16-Jan-2017 bowgotsai <bowgotsai@google.com> Do not add macro min() definition for C++

It will have build error when the caller also includes <algorithm> in C++:
external/libcxx/include/__undef_min_max: macro min is incompatible with C++

Bug: 34336098
Test: builds

Change-Id: I984a24a8dfce6da5a1ad52594ef94ed97c67e9b8
/system/extras/ext4_utils/include/ext4_utils/ext4_utils.h
018ef1be61e749d0fbe0f05179a4f0f9b858ae57 05-Oct-2016 Tao Bao <tbao@google.com> ext4_utils: Export headers for libext4_utils* libs.

So we can do "#include <ext4_utils/make_ext4fs.h>" without adding
"LOCAL_C_INCLUDES += system/extras/ext4_utils".

Also clean up the #include lines in system/extras/ext4_utils/.

Test: `m checkbuild` works.

Change-Id: I3c8b07c9b6f5996160e0cb6d9d069579b1609f60
/system/extras/ext4_utils/include/ext4_utils/ext4_utils.h