aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorLibravatar Disconnect3d <dominik.b.czarnota@gmail.com>2019-07-11 21:13:08 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2019-07-11 19:13:08 +0000
commitd3d0d74465a2d6eb4fdda5634cb9aa8ba7a1c5ec (patch)
treead32590031d4fe332b4e6e895b53e56ca9fcbcc7 /contrib
parentSupport media on other drives in youtube-dl.profile (diff)
downloadfirejail-d3d0d74465a2d6eb4fdda5634cb9aa8ba7a1c5ec.tar.gz
firejail-d3d0d74465a2d6eb4fdda5634cb9aa8ba7a1c5ec.tar.zst
firejail-d3d0d74465a2d6eb4fdda5634cb9aa8ba7a1c5ec.zip
Update libpostexecseccomp.c (#2851)
* Update libpostexecseccomp.c Remove `if (size != 0)` condition, which is always true as there is a `if (size <= 0)` condition before. Also note that if the `if (size <= 0)` condition wouldn't be there and `size` would be 0, there would have been an undefined behavior in due to division by zero in `(unsigned short) size / (unsigned short) sizeof(struct sock_filter);`. Found with LGTM: https://lgtm.com/projects/g/netblue30/firejail/snapshot/961c4ca00425b60a7bc8543460031a8ebf3d8aa6/files/src/libpostexecseccomp/libpostexecseccomp.c#x838c24f710410160:1
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions