diff options
author | 2018-06-22 15:41:44 +0200 | |
---|---|---|
committer | 2018-06-22 15:41:44 +0200 | |
commit | ad085c13325d17a242a813879b8574ba3dd43cc7 (patch) | |
tree | 60dd5b87f1e9bf29b0816210ee00e18e29470405 /include/swaygrab/json.h | |
parent | Merge pull request #2143 from vilhalmer/mark-pool-buffers-busy (diff) | |
download | sway-ad085c13325d17a242a813879b8574ba3dd43cc7.tar.gz sway-ad085c13325d17a242a813879b8574ba3dd43cc7.tar.zst sway-ad085c13325d17a242a813879b8574ba3dd43cc7.zip |
bugfix: avoid access after free
if src is NULL due to a previous error we cannot use it in the command
result string.
Moreover if `src` points to `p.we_wordv[0]` we cannot use it after
`wordfree(&p)` in the command result string.
Bonus feature: If there was an error accessing the file, the string
rapresentation of the error is now included in the command result
string.
Diffstat (limited to 'include/swaygrab/json.h')
0 files changed, 0 insertions, 0 deletions