mouse07410 / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
93 stars 70 forks source link

APER: fix non negative normally small whole numbers #157

Closed CedricRouxEurecom closed 8 months ago

CedricRouxEurecom commented 8 months ago

aper_put_nsnnwn() and aper_get_nsnnwn() were wrong. All the places where they were used are modified, if needed.

The functions aper_get_constrained_whole_number() and aper_put_constrained_whole_number() are introduced. They don't cover all cases, very big numbers are not supported.