commit | 784b43b2ae04bbd8a689f6c32086d4c43bc2c89e | [log] [tgz] |
---|---|---|
author | Nicolas Iooss <nicolas.iooss@m4x.org> | Wed Nov 16 00:07:21 2016 +0100 |
committer | Stephen Smalley <sds@tycho.nsa.gov> | Wed Nov 16 09:03:45 2016 -0500 |
tree | ca50848d3c80fb1d9975d3d62a7b083fcd0f2bef | |
parent | a96184bcbb748699107bc0b953ed76c1059ccb59 [diff] |
libsepol: replace an assert with an error message When fuzzing hll/pp inputs, a policy module where the value of scope->decl_ids_len has been modified to zero makes the program abort (when it has been compiled without -DNDEBUG). Change the behavior to report an error message instead. This eases fuzzing functions like policydb_read(). Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>