diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-08-22 14:38:54 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-08-28 16:22:35 +0200 |
commit | 8b9b9869a29232cef90c445e71e4120f4f252d9f (patch) | |
tree | ec9e7240a2d394cafa39277d9c51ad99eb4c0937 /po/it.po | |
parent | 1c27f000477cad14109cc0b1e60186a9e2147457 (diff) | |
download | sssd-8b9b9869a29232cef90c445e71e4120f4f252d9f.tar.gz sssd-8b9b9869a29232cef90c445e71e4120f4f252d9f.tar.xz sssd-8b9b9869a29232cef90c445e71e4120f4f252d9f.zip |
sss_packet_grow: correctly pad packet length to 512B
https://fedorahosted.org/sssd/ticket/2059
If len % SSSSRV_PACKET_MEM_SIZE == 0 or some low number,
we can end up with totlen < len and return EINVAL.
It also does not pad the length, but usually allocates
much more memory than is desired.
len = 1024
n = 1024 % 512 + 1 = 0 + 1 = 1
totlen = 1 * 512 = 512
=> totlen < len
len = 511
n = 511 % 512 + 1 = 511 + 1
totlen = 512 * 512 = 262144
totlen is way bigger than it was supposed to be
Diffstat (limited to 'po/it.po')
0 files changed, 0 insertions, 0 deletions