commit | a5b0288ccf52fcc858afe43fdf8f52143ab8c063 | [log] [tgz] |
---|---|---|
author | Lev Walkin <vlm@lionet.info> | Sun Oct 01 22:48:44 2017 -0700 |
committer | Lev Walkin <vlm@lionet.info> | Mon Oct 02 00:42:00 2017 -0700 |
tree | 1db1947f686568d96b563263b19b79f3a9fecdda | |
parent | d17cf888e5569a6ebffbe5697a22dbba7471d58d [diff] [blame] |
encode BIT STRING in a minimum number of bits for CANONICAL-UPER
diff --git a/skeletons/BIT_STRING_oer.c b/skeletons/BIT_STRING_oer.c index e887228..b18e27f 100644 --- a/skeletons/BIT_STRING_oer.c +++ b/skeletons/BIT_STRING_oer.c
@@ -47,6 +47,8 @@ } if(expected_length < 1) { + ASN__DECODE_FAILED; + } else if(expected_length > size) { ASN__DECODE_STARVED; }