Commit Graph

183 Commits

Author SHA1 Message Date
Lev Walkin f11ebf8a5b corrected to the best known range (fixed after X.696 Corrigendum 1) 2017-10-11 00:37:27 -07:00
Lev Walkin 2225674d46 cosmetics 2017-10-08 16:33:57 -07:00
Lev Walkin 1f05facc8c ignore garbage in the tests directory 2017-10-08 16:33:21 -07:00
Lev Walkin 4329272a64 for OER use IEEE754 binary32 and binary64 format over the wire 2017-10-05 00:33:32 -07:00
Lev Walkin c44edc0df4 take into account X696 Corrigendum 1 (05/2017) 2017-10-04 03:28:38 -07:00
Lev Walkin 026e21abe1 narrowing to support 32-bit floats 2017-10-04 00:49:01 -07:00
Lev Walkin 42457fe974 remove namespace leak 2017-09-26 18:07:50 -07:00
Lev Walkin f6e04b5522 ignore single value constraint which looks like a (bit)string itself 2017-09-11 06:51:21 -07:00
Lev Walkin 77f65c9759 remove extra log 2017-09-08 00:27:49 -07:00
Lev Walkin be518fac4c ENUMERATION can not be empty 2017-09-07 02:05:28 -07:00
Lev Walkin d523ea454d parse advanced WITH COMPONENTS 2017-09-06 22:15:08 -07:00
Lev Walkin ade508caed avoid generating references to empty maps 2017-08-23 10:25:46 -07:00
Lev Walkin 53a28a26c4 empty information object sets are OK 2017-08-23 09:56:53 -07:00
Lev Walkin d8e07c5f08 parameterized referencing of information object sets 2017-08-23 07:38:30 -07:00
Lev Walkin f75b874253 specialization fix, tested on value specialization 2017-08-23 04:44:18 -07:00
Lev Walkin c0e03b946e introduce namespaces 2017-08-22 01:48:23 -07:00
Lev Walkin d9221847e5 add common lib 2017-08-22 01:44:56 -07:00
Lev Walkin d357f3d53f fix ioc value encoding 2017-08-10 17:40:37 -07:00
Lev Walkin 700df493dd reshuffled the tests layout 2017-08-10 14:59:15 -07:00
Lev Walkin 4dcf8367d9 refactor constraint matrix handling 2017-08-07 20:10:05 -07:00
Lev Walkin 62d95d2ef4 rm warnings 2017-08-06 23:41:11 -07:00
Lev Walkin ea6635bdae better parsing information object class sets 2017-08-06 23:23:04 -07:00
Lev Walkin da997b1ea1 work in 128-bit integer values while compiling 2017-08-04 01:38:41 -07:00
Bi-Ruei, Chiu 1fa31c9e3e Simplify the logic of accessing codec function for specific TYPE 2017-08-02 14:06:07 -07:00
Lev Walkin ed1ce785bb oer constraints (incomplete) 2017-08-02 13:32:23 -07:00
Lev Walkin a28cbb9f66 add constraint debug 2017-08-02 13:32:23 -07:00
Lev Walkin dbdc06725f clarification that EXCEPT is ignored in both PER and OER 2017-08-02 13:32:23 -07:00
Lev Walkin 8b6a8005e0 account for a wider structure 2017-08-02 13:32:21 -07:00
Lev Walkin 98eabc1c82 a pass over OER constraints 2017-08-02 13:32:18 -07:00
Lev Walkin af8595ad09 remove comment 2017-06-27 08:22:30 -07:00
Bi-Ruei, Chiu 80fd3065f4 Merge PR99 and its fixes to support parsing Information Object and Information Object Set
This is a collection of works :

1. Based on @zhanglei002's pull request 99.

2. A fix by @AuthenticEshkinKot and merged by @mouse07410 at
   commit 2c8d366bbe1fc4e4c041e9b0eb9779f8a42d754b of https://github.com/mouse07410/asn1c
   to support parsing of Information Object and Information Object Set

3. A fix by @Uri Blumenthal in asn1fix_derefv.c at :
   commit ec0ade4f87c807e763e3f35fc5466adb6dda3473 of https://github.com/mouse07410/asn1c
   to solve crash on asn1p_value_free().

4. My pull request 18 to @mouse07410's https://github.com/mouse07410/asn1c to solve
   problems found during parsing ASN.1 modules of S1AP, RANAP and J2735-201603.

5. My pull request 22 to @mouse07410's https://github.com/mouse07410/asn1c to solve issue 147
   and to solve the problem during parsing ASN.1 module of NBAP.

6. My pull request 23 to @mouse07410's https://github.com/mouse07410/asn1c to fix memory leakage
   introduced in aforementioned commits.
   Most code changes are the same as pull request 153 to this repository.

7. A fix of my bug in item 6 which result asn1c crash, fixed by @mouse07410.
2017-05-07 22:20:30 +08:00
Bi-Ruei, Chiu 3dcf05bbb0 Fix some memory leakage found 2017-05-05 15:03:32 +08:00
Vasil Velichkov e318759ef2 Add code coverage using lcov and gcov
To generate the code coverage report you need gcov and lcov installed
and then execute

 ./configure --enable-code-coverage
 make check-code-coverage

 Writing directory view page.
 Overall coverage rate:
   lines......: 76.5% (10519 of 13759 lines)
   functions..: 85.5% (491 of 574 functions)
   branches...: 57.5% (7040 of 12250 branches)
 file:///home/user/asn1c/asn1c-0.9.28-coverage/index.html

Open the index.html with a web browser
2017-03-26 04:42:26 -07:00
Markus Elfring f3d1861b94 Bug #86: Deletion of unnecessary checks before calls of the function "free"
The function "free" is documented in the way that no action shall occur for
a passed null pointer. It is therefore not needed that a function caller
repeats a corresponding check.
http://stackoverflow.com/questions/18775608/free-a-null-pointer-anyway-or-check-first

This issue was fixed by using the software "Coccinelle 1.0.4".

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2016-03-15 08:35:24 +01:00
Lev Walkin 55982b820a undo skeletons hierarchy detection 2016-03-14 03:56:16 -07:00
Lev Walkin 9ee77995ba more explicit test spec 2016-03-14 03:46:16 -07:00
Lev Walkin 9e66d16ab3 infer skeletons level 2016-03-14 03:36:35 -07:00
Lev Walkin 819c832b86 go one dir deeper, still, if possible 2016-03-14 03:24:28 -07:00
Lev Walkin 04532ccc2a another attempt at travis debug 2016-03-14 03:09:00 -07:00
Lev Walkin c6cac8e958 do not use reserved identifiers 2016-03-14 02:57:34 -07:00
Lev Walkin c6b34cc6de another attempt at travis debug 2016-03-13 23:46:09 -07:00
Lev Walkin 88badc8a5b another attempt at travis debug 2016-03-13 17:29:20 -07:00
Lev Walkin 1ec7605500 do not use reserved identifiers for variables 2016-03-13 17:13:20 -07:00
Lev Walkin 84b578827c show the environment to debug absense of tests 2016-03-13 16:55:28 -07:00
Lev Walkin 08068b26d3 environment override for tests directory 2016-01-24 22:49:06 -08:00
Lev Walkin a57f2827b5 different relative path 2016-01-24 18:19:35 -08:00
Lev Walkin 3b2278aa35 fix overflow bug comparing ranges 2016-01-24 16:43:50 -08:00
Lev Walkin 8be766aa8e use -Define to figure out where to get tests from 2016-01-23 13:07:06 -08:00
Lev Walkin da94cd4287 useless -all-static 2014-10-13 02:43:57 +00:00
Lev Walkin 67303befa4 intentional 2014-10-12 19:22:35 -07:00