libosmocore/contrib
Neels Hofmeyr d80a217f7f contrib: add script to find unterminated value_string arrays
Unterminated value_string arrays are dangerous since get_value_string() and
get_string_value() need to know where the struct ends. If the terminator is
missing, they might run through and return arbitrary memory locations.

Employ some regexes to find such unterminated value string arrays and return
nonzero if any are found.

This can be used in our jenkins build jobs to avoid committing unterminated
value_string arrays. In fact I've found one in current libosmocore:
gsm0808_bssap_names in gsm/gsm0808.c, fixed in a separate patch.

Change-Id: I2bc93ab4781487e7685cfb63091a489cd126b1a8
2017-03-16 12:53:50 +00:00
..
fsm-to-dot.py contrib: add fsm-to-dot.py to draw osmo_fsm dotty graphs 2016-12-09 11:29:06 +00:00
jenkins.sh configure: add --enable-sanitize, use in jenkins.sh 2016-10-12 22:50:24 +00:00
verify_value_string_arrays_are_terminated.py contrib: add script to find unterminated value_string arrays 2017-03-16 12:53:50 +00:00