Merge "libziparchive: add integer checks"

This commit is contained in:
Treehugger Robot 2019-03-27 13:03:16 +00:00 committed by Gerrit Code Review
commit 80e72443d0
1 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,19 @@ cc_defaults {
],
},
},
sanitize: {
misc_undefined: [
"signed-integer-overflow",
"unsigned-integer-overflow",
"shift",
"integer-divide-by-zero",
"implicit-signed-integer-truncation",
// TODO: Fix crash when we enable this option
// "implicit-unsigned-integer-truncation",
// TODO: not tested yet.
// "implicit-integer-sign-change",
],
},
}
cc_defaults {