Commit Graph

153 Commits

Author SHA1 Message Date
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
Lev Walkin 3278995748 merged patch #31 2014-10-12 18:51:52 -07:00
Lev Walkin 1b03c79368 removed autotools intermediate files from source code; use autoreconf -iv. 2014-10-12 17:31:26 -07:00
Lev Walkin e0d321a650 version 0.9.26 2014-09-11 01:28:57 -07:00
Lev Walkin ea55215e3c split ADD_CFLAGS and TESTSUITE_CFLAGS 2014-01-14 02:15:13 -08:00
Lev Walkin f84cc014d4 check cc flags viability before setting them 2014-01-14 02:12:24 -08:00
Lev Walkin aef10c36f7 upgrade autotools 2014-01-14 01:47:25 -08:00
Frank Morgner cab30af3ee check for strcasecmp 2013-05-21 14:29:12 +02:00
Lev Walkin 1d6d5191fb search with case sensitivity 2013-03-28 05:00:31 -07:00
Lev Walkin 1715b32c87 format and signedness mismatch fixes 2013-03-28 04:02:13 -07:00
Lev Walkin b3751947cb upgrade autotools 2012-09-02 19:36:47 -07:00
Lev Walkin 936595643a WIN32 -> _WIN32; see http://predef.sourceforge.net/preos.html#sec25 2010-11-20 09:47:13 -08:00
Lev Walkin e7c4b96655 update automake and move doc -> docsrc 2010-11-09 03:26:07 -08:00
Lev Walkin 4c776e5921 aclocal-1.10 2010-11-08 02:14:14 -08:00
Lev Walkin ffe79f4450 Enumeration constraints relaxed 2010-10-25 00:10:34 -07:00
Lev Walkin 4da95cf66c newer version of build tools 2010-10-16 03:18:57 -07:00
Lev Walkin 7bb4ad0506 with -> as 2008-01-01 20:04:52 +00:00
Lev Walkin 27fd0b6a46 upgraded compatibility 2007-08-27 23:57:45 +00:00
Lev Walkin 08afe612de regeneration 2007-07-23 06:49:56 +00:00
Lev Walkin 06bf7ccb9f reautomakified 2007-06-24 09:13:16 +00:00
Lev Walkin c5a5d22cd5 some fixes 2007-06-23 17:35:56 +00:00
Lev Walkin 3a4689a7da BMPString and UniversalString support 2006-11-24 11:20:27 +00:00
Lev Walkin 5c541f119e PatterConstraint parsing 2006-10-18 18:40:14 +00:00
Lev Walkin 725883b28d more PER support 2006-10-09 12:07:58 +00:00
Lev Walkin 38d00171e2 remove extensions from the beginning of serially applied constraint 2006-09-21 02:21:53 +00:00
Lev Walkin a9532f4d2b moved -DASN_PDU_COLLECTION into compiler 2006-09-17 04:52:50 +00:00
Lev Walkin 55f106a8b2 do not free everything 2006-09-15 16:34:12 +00:00
Lev Walkin 223000ab18 *** empty log message *** 2006-09-13 00:21:58 +00:00
Lev Walkin f4b1d7faf8 api change 2006-09-12 05:19:28 +00:00
Lev Walkin d83172f7d3 MEGACO (Media Gateway Control) protocol decoder 2006-09-09 04:49:45 +00:00
Lev Walkin adf863fc8f support parsing realnumber tokens in constraints 2006-09-05 16:18:34 +00:00