Commit graph

  • 570ea7ece9 Move memory corruption tests up a directory jvoisin 2022-01-21 20:47:21 +01:00
  • 0bbcc5d610 malloc.c was renamed to h_malloc.c Daniel Micay 2022-01-19 16:42:12 -05:00
  • 3fa30842ed Use $(MAKE) instead of make in Makefiles jvoisin 2022-01-17 22:16:45 +01:00
  • a273f91cc3 Use $(MAKE) instead of make in Makefiles jvoisin 2022-01-17 22:16:45 +01:00
  • b3d78bd5f6 use static const for local constants Daniel Micay 2022-01-16 21:02:17 -05:00
  • 8d61e63274 add comment about special small size classes Daniel Micay 2022-01-16 20:50:49 -05:00
  • 422ee78b3e reorganize pages.h header Daniel Micay 2022-01-16 16:57:22 -05:00
  • 3e312695e1 document clz64/log2u64 not being able to handle 0 Daniel Micay 2022-01-16 16:28:24 -05:00
  • 81cf2f27a0 calculate slab size class instead of array loop Daniel Micay 2022-01-16 14:05:59 -05:00
  • d8cb2d9f7a use consistent wrappers around clz/ffs Daniel Micay 2022-01-16 15:39:59 -05:00
  • 86f9c739ee define constant for u64 bit width Daniel Micay 2022-01-16 15:01:51 -05:00
  • 536f852538 reuse a single size alignment implementation Daniel Micay 2022-01-16 14:41:46 -05:00
  • e814cf4f5c enable linking optimization for GNU linker Daniel Micay 2022-01-16 12:18:00 -05:00
  • 705211ef49 define UBSan flags for SHARED_FLAGS to reuse it Daniel Micay 2022-01-16 11:50:55 -05:00
  • 189d3362d5 enable sized deallocation ABI for consistency Daniel Micay 2022-01-16 11:48:01 -05:00
  • e2bcf4a356 stop silencing constant logical operand warning Daniel Micay 2022-01-13 14:51:22 -05:00
  • edf4544c80 workarounds for Pixel 3 SoC era camera driver bugs SQ1D.220105.007.2022011423 SQ1A.220105.002.2022011423 SP1A.210812.016.A2.2022011423 Daniel Micay 2019-01-01 14:45:27 -05:00
  • d470ae56a5 switch Android build to C17 from C11 Daniel Micay 2022-01-13 14:48:56 -05:00
  • 42b097f3b0 CONFIG_SEAL_METADATA is regularly tested now Daniel Micay 2022-01-13 14:25:41 -05:00
  • 17891d743e switch from c11 to c17 standard 10 Daniel Micay 2022-01-12 10:20:47 -05:00
  • efd71e70c7 update documentation based on light configuration Daniel Micay 2022-01-12 08:58:00 -05:00
  • a6d27848af wrap overly long line Daniel Micay 2022-01-12 08:44:39 -05:00
  • 110126d7f0 README: fix path to configuration templates Daniel Micay 2022-01-12 08:43:28 -05:00
  • a2bdb4da27 update gitignore for renamed / added tests Daniel Micay 2022-01-12 08:41:21 -05:00
  • 0c0561e563 update gitignore for config template system Daniel Micay 2022-01-12 08:41:12 -05:00
  • 5a577e9ee0 document configuration template system Daniel Micay 2022-01-12 08:38:33 -05:00
  • f842ef6c19 fixed __throw_bad_alloc not found iraizo 2022-01-12 14:16:34 +01:00
  • 079989797f removed empty define iraizo 2022-01-12 14:01:35 +01:00
  • 03aa110407 fixed redefenition of alias iraizo 2022-01-12 14:00:02 +01:00
  • be80191b46 make source & tests compile on osx iraizo 2022-01-12 13:25:22 +01:00
  • 7d3b989073 workarounds for Pixel 3 SoC era camera driver bugs SQ1D.211205.017.2022011009 Daniel Micay 2019-01-01 14:45:27 -05:00
  • cb827353db workarounds for Pixel 3 SoC era camera driver bugs SQ1A.220105.002.2022011009 SP1A.210812.016.A2.2022011009 Daniel Micay 2019-01-01 14:45:27 -05:00
  • b3372e1576 add configuration template system Daniel Micay 2022-01-09 11:08:56 -05:00
  • 052b756840 Fix two warnings jvoisin 2022-01-04 18:39:49 +01:00
  • dcd8902632 Fix two warnings jvoisin 2022-01-04 18:39:49 +01:00
  • adb80b2d3e workarounds for Pixel 3 SoC era camera driver bugs SQ1D.211205.017.2022010500 SQ1A.220105.002.2022010500 SP1A.210812.015.2022010500 Daniel Micay 2019-01-01 14:45:27 -05:00
  • 001eb0687b Fix an unused parameter warning jvoisin 2022-01-04 17:56:48 +01:00
  • 2a5662948e rename bitmap manipulation functions Daniel Micay 2022-01-04 12:10:59 -05:00
  • 8a8eb10aaa Fix an unused parameter warning jvoisin 2022-01-04 17:56:48 +01:00
  • d1c39edc9b use const for malloc_object_size API Daniel Micay 2022-01-04 10:14:41 -05:00
  • aa1746a90d alloc_size attribute for legacy valloc function Daniel Micay 2022-01-04 10:04:26 -05:00
  • f3efc26638 add malloc attribute where appropriate Daniel Micay 2022-01-04 09:56:29 -05:00
  • 78cbb964d4 Add alloc_size and alloc_align attributes jvoisin 2022-01-03 17:14:55 +01:00
  • 36dfed3354 Add aarch64 to the CI jvoisin 2022-01-04 12:54:25 +01:00
  • b7f1bb99c9 Add alloc_size and alloc_align attributes jvoisin 2022-01-03 17:14:55 +01:00
  • 9453e2941d Add aarch64 to the CI jvoisin 2022-01-04 12:54:25 +01:00
  • 8a500088c6 add missing include for overflow tests Daniel Micay 2022-01-03 21:24:31 -05:00
  • c50d06bc6a comment explaining XOR for 8 byte overflow test Daniel Micay 2022-01-03 21:23:14 -05:00
  • 645414cc9f add 1 byte overflow tests Daniel Micay 2022-01-03 21:20:15 -05:00
  • 13a1f578cb use calculated size for overflow tests Daniel Micay 2022-01-03 21:11:31 -05:00
  • acda766e2c fix small allocation canary overwrite test Daniel Micay 2022-01-03 21:07:24 -05:00
  • 5f32942263 get rid of canary_value when canaries are disabled Daniel Micay 2022-01-03 17:56:57 -05:00
  • 346529574d check whole allocation for uninit read large test Daniel Micay 2022-01-03 17:55:05 -05:00
  • 16c991b8f7 use 256k for large allocation tests Daniel Micay 2022-01-03 16:11:03 -05:00
  • 5f59ee3935 Add two tests to check that uninitialized read are zeroed jvoisin 2021-12-27 13:17:58 +01:00
  • 1d31a05c40 Add two tests to check that uninitialized read are zeroed jvoisin 2021-12-27 13:17:58 +01:00
  • 3696f071a4 use SLAB_CANARY for conditional checks Daniel Micay 2022-01-03 02:17:04 -05:00
  • 7d6663ed80 update copyright notice Daniel Micay 2022-01-03 01:41:17 -05:00
  • c6af50d088 use unsigned for ffzl definition 9 Daniel Micay 2022-01-03 01:29:12 -05:00
  • 8ae78237ae avoid unnecessarily mixing 32-bit and 64-bit ints Daniel Micay 2022-01-03 00:54:43 -05:00
  • 3f8e9d3184 make MREMAP_MOVE_THRESHOLD into size_t constant Daniel Micay 2022-01-03 00:31:46 -05:00
  • 1e526fc36b disable incredibly impractical clang-tidy check Daniel Micay 2022-01-03 00:27:49 -05:00
  • c5be4b1888 Fix two mundane clang warnings in the testsuite jvoisin 2022-01-02 13:30:34 +01:00
  • ffdf7b1ee1 Make the testsuite work for read-after-free jvoisin 2022-01-02 13:39:42 +01:00
  • 2d56c1de01 Fix a couple of mundane typo in the readme jvoisin 2022-01-02 13:51:25 +01:00
  • 43eb2ca9fe Fix a couple of mundane typo in the readme jvoisin 2022-01-02 13:51:25 +01:00
  • 7fce9cdc28 Make the testsuite work for read-after-free jvoisin 2022-01-02 13:39:42 +01:00
  • 3c60cf6903 Fix two mundane clang warnings in the testsuite jvoisin 2022-01-02 13:30:34 +01:00
  • da73b28162 Add a test for slab canaries jvoisin 2022-01-01 22:23:09 +01:00
  • 3878f4a5f4 Don't ignore the return value of the testsuite jvoisin 2022-01-01 17:25:25 +01:00
  • de7a3b6e5a enable sized deallocation for sized deletion test Daniel Micay 2022-01-01 23:18:52 -05:00
  • a6df692f41 Don't ignore the return value of the testsuite jvoisin 2022-01-01 17:25:25 +01:00
  • ba2b80b0e5 Run clang-tidy in the CI jvoisin 2021-12-31 17:24:43 +01:00
  • 9142a9376b Add a bunch of const qualifiers jvoisin 2021-12-30 20:07:14 +01:00
  • 75e26afdb6 remove legacy safe_flag check for -fno-plt Daniel Micay 2021-12-30 19:17:23 -05:00
  • 861d6768f8 Add a bunch of const qualifiers jvoisin 2021-12-30 20:07:14 +01:00
  • cff1d6d4b5 Add a test to prove that hardened_malloc handles too-large-to-be-true allocations jvoisin 2021-12-28 12:27:28 +01:00
  • 40a2d8485c Add a test to prove that hardened_malloc handles too-large-to-be-true allocations jvoisin 2021-12-28 12:27:28 +01:00
  • 75952581ee Silence a GCC warning jvoisin 2021-12-26 15:34:37 +01:00
  • a84d3f5310 Run the testsuite on musl as well in the CI jvoisin 2021-12-23 17:52:35 +01:00
  • b2e5a39d54 Silence a GCC warning jvoisin 2021-12-26 15:34:37 +01:00
  • e8f204401a Run the testsuite on musl as well in the CI jvoisin 2021-12-23 17:52:35 +01:00
  • 0655c1d024 Add a missing const jvoisin 2021-12-26 23:37:52 +01:00
  • c2b1a39ec8 Add a missing const jvoisin 2021-12-26 23:37:52 +01:00
  • 3572544b81 Simplify a bit write_after_free_check jvoisin 2021-12-26 23:06:28 +01:00
  • 2b25c791ee Run the CI every day at 2am UTC jvoisin 2021-12-26 22:30:36 +01:00
  • 5445a91b4f Run the CI every day at 2am UTC jvoisin 2021-12-26 22:30:36 +01:00
  • e816c545ea Run the CI in clang jvoisin 2021-12-26 21:58:19 +01:00
  • b2dac26f33 Run the CI in clang jvoisin 2021-12-26 21:58:19 +01:00
  • 06192ae499 make clean is now thorough jvoisin 2021-12-26 22:18:40 +01:00
  • 4ccd6f16df always enable C++17 Daniel Micay 2021-12-26 16:24:38 -05:00
  • a3de52b2bd make clean is now thorough jvoisin 2021-12-26 22:18:40 +01:00
  • a5e9906967 Fix the compilation under clang jvoisin 2021-12-26 22:10:23 +01:00
  • 9966adbdad Add another ifdef for GNU extension jvoisin 2021-12-23 20:44:45 +01:00
  • ecc1dd813a Add another ifdef for GNU extension jvoisin 2021-12-23 20:44:45 +01:00
  • 769e01fc4b Don't use mallinfo on non-android and non-glibc jvoisin 2021-12-23 18:27:18 +01:00
  • c16418da8b Don't use mallinfo on non-android and non-glibc jvoisin 2021-12-23 18:27:18 +01:00
  • a3a938a303 workarounds for Pixel 3 SoC era camera driver bugs SQ1D.211205.017.2021122018 SQ1A.211205.008.2021122018 SQ1A.211205.008.2021121602 SP1A.210812.015.2021122018 SP1A.210812.015.2021121602 Daniel Micay 2019-01-01 14:45:27 -05:00
  • 460fef456d only Android 12 is supported Daniel Micay 2021-11-23 15:42:29 -05:00
  • 1a650b0317 update copyright notice Daniel Micay 2021-11-11 22:17:56 -05:00