diff options
author | Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> | 2016-07-07 12:48:42 +0300 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-07-07 12:52:01 +0200 |
commit | 740bfe1a5bf519de8e13bdce5c4143b0f24d7433 (patch) | |
tree | 0d49860a3f1d213e312bb0a4d53ff44d251fa6e4 /src/confdb | |
parent | 78027feeb56d6fe216f699be86a4716aaef3f628 (diff) | |
download | sssd-740bfe1a5bf519de8e13bdce5c4143b0f24d7433.tar.gz sssd-740bfe1a5bf519de8e13bdce5c4143b0f24d7433.tar.xz sssd-740bfe1a5bf519de8e13bdce5c4143b0f24d7433.zip |
Fix packet size calculation in sss_packet_new
Use division instead of modulo while rounding the created packet size up
to a multiple of SSSSRV_PACKET_MEM_SIZE in sss_packet_new. This fixes
potentially packet buffer overflows with certain body sizes.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/confdb')
0 files changed, 0 insertions, 0 deletions