diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-01-07 13:39:24 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-01-09 08:22:14 +0100 |
commit | 26cbd459fcc7cd7bed8256a5ad078c177a7a7fe2 (patch) | |
tree | 0de9217e0d73edd48d3a175680a6824ffd2c77ea /include/osmocom/vty | |
parent | d4d87c5427bdf838cbfc3948bcf035e1e4036fd9 (diff) |
sms: Fix gsm_7bit legacy functions return value
The legacy 7bit conversion functions (those without the '_n_' in the
name) gave wrong return values on 64 bit platforms due to unproper
signed/unsigned conversions and the usage of SIZE_MAX.
This patch fixes this by using a smaller max size (see
GSM_7BIT_LEGACY_MAX_BUFFER_SIZE, currently set to 64k) for the legacy
wrappers and by using unsigned int for max_septets.
In addition, there are tests now that check the return values of
legacy encoding and decoding.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'include/osmocom/vty')
0 files changed, 0 insertions, 0 deletions