]> git.lizzy.rs Git - bspwm.git/commit
Enforce strict mode of jsmn.
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 12 Jul 2019 18:40:39 +0000 (20:40 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 12 Jul 2019 18:40:39 +0000 (20:40 +0200)
commitbaa6a5584726b5feb7d6a59ba6d8949098b96bd4
tree9687e402e28dd92f4bd5131a3d317a1e2951ece2
parent5c39084ad30ea13d1ef6da3eb5f72c056c88360f
Enforce strict mode of jsmn.

If no strict mode of jsmn is enforced, then the correct amount of
json elements would have to be checked to avoid segmentation faults
on malformed state files:

$ echo '{ "focusedMonitorId" }' > malformed-state
$ bspwm -s malformed-state
Segmentation fault
$ _

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Makefile