summaryrefslogtreecommitdiffstats
path: root/src/prim.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-12-12 14:11:31 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-12-12 16:56:54 +0100
commita4842afc83334f97653e6cca6220b19f53696509 (patch)
tree7a5e44d3e65ef54ebb2c646f3df1fe52d50631bc /src/prim.c
parent748022694c57ce7b9412469b8190c7d232818a69 (diff)
show bug in logging: log_set_category_filter on DL* categories
Add a check to logging_test.c to show a bug: passing an internal DL* category constant to log_set_category_filter() results in a negative array index and undefined behavior. A sanitize build should catch this. The bug is confirmed by the fact that logging_test.err stays the same (hopefully) although a logging output should appear from this patch. The test could as well segfault or anything else, it's a bit of a gamble. This bug will be fixed along with the expectation in a subsequent patch. Change-Id: Ie2da77c642a84cafc0f528985930697ec167183b
Diffstat (limited to 'src/prim.c')
0 files changed, 0 insertions, 0 deletions