diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-10-23 07:29:31 -0400 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-10-23 07:29:31 -0400 |
| commit | b1b918378513566a9359e655ea538292c62d4173 (patch) | |
| tree | 012f45b059d9aea8489380babcd0b0f8673c5e2b /src/core | |
| parent | 0d2d9d456525b965241d62572a5f128d90e88dc5 (diff) | |
| download | nng-b1b918378513566a9359e655ea538292c62d4173.tar.gz nng-b1b918378513566a9359e655ea538292c62d4173.tar.bz2 nng-b1b918378513566a9359e655ea538292c62d4173.zip | |
Fix for possible overruns in fragsz.
While the fragment size itself fits within 16-bits, when we do math
on it (such as multiplying by a fragment count), we may need to calculate
values that exceed 16-bits (e.g. 1MB). Therefore we should treat this
as a size_t, but cast it down to 16-bits only when we write it out to
the packet field.
Diffstat (limited to 'src/core')
0 files changed, 0 insertions, 0 deletions
