diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-04-13 22:19:37 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-04-13 22:19:37 +0200 |
commit | 8fd1aa262681ee7380df46dd8fc0db066969320a (patch) | |
tree | a698950ea91926bd741e708a54341eb23a06a3f4 /sys/lib/python/ftplib.py | |
parent | 4ed396d438554c2dea8521b0e5a7ee51826d4125 (diff) |
libc: fix out of bounds access in dirpackage(), simplify
- dirpackage() was not checking if the stat entry lies within
the buffer. fixed.
- simplify dirpackage(), as we process all the bytes from
the buffer, we do not need to track "ss" here as its the same
as "ts".
- zero Dir* array pointer early in dirread() and dirreadall()
and avoid calling dirpackage on <= buffer length.
Diffstat (limited to 'sys/lib/python/ftplib.py')
0 files changed, 0 insertions, 0 deletions