Commit Graph

1774 Commits

Author SHA1 Message Date
Bi-Ruei, Chiu c46137bddd Merge velichkov's commit 598e7b45... to mouse07410's asn1c repository
Excerpt from commit log :

  Do not generate coverage data for the test C code
  When compiling tests remove the CODE_COVERAGE_CFLAGS flags from CFLAGS

and also add

  CFLAGS = $(filter-out $(CODE_COVERAGE_CFLAGS), @CFLAGS@)

to 'skeleton/Makefile.am' to avoid compilation error in vlm's repository.
2017-05-08 17:04:38 +08:00
Bi-Ruei, Chiu 2d6b8c0170 Add more test result for check-parsing.sh 2017-05-08 12:17:04 +08: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
Lev Walkin 4021e4ba62 Merge pull request #145 from johvik/master
Skip last comma when there are no extensions
2017-05-07 00:05:40 -07:00
Lev Walkin bfa08659c9 dependency requirements 2017-05-05 03:36:25 -07:00
Lev Walkin d3911dfd4d update brchiu email 2017-05-05 03:33:49 -07:00
Lev Walkin 08637ac552 added LTE RRC 2017-05-05 03:33:21 -07:00
Lev Walkin 052f3b980d numeration and text fixes 2017-05-05 03:33:10 -07:00
Lev Walkin 2bb6add14f Merge pull request #150 from brchiu/add_rrc_lte_example
Add LTE-RRC example
2017-05-05 03:30:18 -07:00
Bi-Ruei, Chiu e86ebcff26 Add README files 2017-05-05 18:26:04 +08:00
Lev Walkin 49c713b770 Merge pull request #153 from brchiu/vlm_master_fix_most_memory_leakage
Fix some memory leakage found till now
2017-05-05 02:34:11 -07:00
Bi-Ruei, Chiu 3dcf05bbb0 Fix some memory leakage found 2017-05-05 15:03:32 +08:00
Bi-Ruei, Chiu 81ac21519b Add LTE-RRC example 2017-04-21 13:28:34 +08:00
johvik 792216e97f Skip last comma when there are no extensions
This is to get rid of the GCC warning:
"warning: comma at end of enumerator list [-Wpedantic]"
2017-04-11 10:42:21 +02:00
Lev Walkin 0eca8c3227 support clang code coverage 2017-03-26 23:06:42 -07:00
Lev Walkin efded512e7 update --enable-code-coverage support 2017-03-26 16:12:11 -07:00
Lev Walkin fa40976f4a reflect contributors 2017-03-26 06:37:38 -07:00
Lev Walkin fbbe4edc8e Merge pull request #126 from brchiu/fix_some_leak_reported_by_valgrind
Fix many memory leaks reported by valgrind
2017-03-26 05:55:00 -07:00
Lev Walkin 46fc2bd8c4 support for C++ 2017-03-26 05:49:10 -07:00
Lev Walkin b2ee65912f get rid of pushes 2017-03-26 05:19:06 -07:00
Lev Walkin 8d0585d80e Merge pull request #132 from velichkov/64bit_test
Rewrite the 64bit test. Fixes #131
2017-03-26 05:14:34 -07:00
Lev Walkin 88271a5d7a Merge branch 'master' into 64bit_test 2017-03-26 05:14:10 -07:00
Lev Walkin 8a2fb9e110 redone check for longer long 2017-03-26 05:13:39 -07:00
Lev Walkin 9c1afcb9c4 new author 2017-03-26 05:09:10 -07:00
Lev Walkin e0a303922e Merge pull request #118 from gareins/master
Refreshing reserved keywords
2017-03-26 05:08:58 -07:00
Lev Walkin 860de0bc14 Merge pull request #109 from theirix/configure-ar
Locate AR using standard macro
2017-03-26 05:02:12 -07:00
Lev Walkin 04a1a615ce add author 2017-03-26 05:00:02 -07:00
Simo Sorce 798bacfbbe Remove misleading continue statement
The RETURN macro unconditionally returns so there is no chance to "continue".
Unreachable, fund by coverity.

Signed-off-by: Simo Sorce <simo@redhat.com>
2017-03-26 05:00:01 -07:00
Simo Sorce cd943c243d The Left variable should be a positive integer
The variable Left is supposed to hold only a positive quantity and was
being passed into functions that accept only size_t as input causing coverity
to throw a fit. Using a size_t type for Left works just fine.
Negative Returns, found by coverity.
2017-03-26 05:00:01 -07:00
Simo Sorce e6b650a0d9 Check and propagate error
per_put_few_bits should be checked for errors.
Checked return, fund by coverity.

Signed-off-by: Simo Sorce <simo@redhat.com>
2017-03-26 05:00:01 -07:00
Simo Sorce 9cbd9b850e Remove dead code.
On the previous line we return if cb is Null, so testing cb is worthless.
Dead code, found by coverity.

Signed-off-by: Simo Sorce <simo@redhat.com>
2017-03-26 04:58:06 -07:00
Lev Walkin 2bfb34cb9c new author 2017-03-26 04:52:06 -07:00
Lev Walkin 419f674aff Merge pull request #110 from theirix/mistype-enber
Fixed a mistype in man
2017-03-26 04:51:55 -07:00
Vasil Velichkov adf6594053 Fix "_BSD_SOURCE" redefined warning
../../skeletons/GeneralizedTime.c:7:0: warning: "_BSD_SOURCE" redefined [enabled by default]
 #define _BSD_SOURCE     /* for timegm(3) */
2017-03-26 04:47:14 -07:00
Vasil Velichkov 9e935ae7d3 Send code coverage reports to coveralls.io
See https://github.com/eddyxu/cpp-coveralls
2017-03-26 04:47:14 -07:00
Vasil Velichkov d82f77b2d2 Fix few duplicate 'const' warnings
error: duplicate 'const' [-Werror=edantic]
2017-03-26 04:46:00 -07:00
Vasil Velichkov 1144b350f3 When -Wpedantic is not supported try the -pedantic instead
GCC prior to 4.8 does not supprot -Wpedantic.
See https://gcc.gnu.org/gcc-4.8/changes.html

The travis-ci currently builds with gcc-4.6.3

  $ gcc --version
  gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
2017-03-26 04:42:26 -07:00
Vasil Velichkov 3b434ca548 Exclude test files from the code coverage report
Link asn1c/tests with libasn1cskeletons.a in order to improve
skeletons coverage. When the skeleton files are copied the lcov will
report coverage for each copy separatly.
2017-03-26 04:42:26 -07: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
Lev Walkin b98b286d7b more authors 2017-03-26 04:12:35 -07:00
Lev Walkin 47c8e47506 Merge pull request #104 from velichkov/asn1c_make_identifier_segfault
Fix segmentation fault in asn1c_make_identifier
2017-03-26 04:12:27 -07:00
Lev Walkin 06a37c85d9 more authors 2017-03-26 04:07:56 -07:00
Lev Walkin 110fc0d802 Merge pull request #102 from daa/master
Use wide types to decode x509 certificate in examples, solves #47
2017-03-26 04:07:09 -07:00
Lev Walkin 0ed483dbb6 more authors 2017-03-26 04:06:11 -07:00
Lev Walkin f3a100974d Merge pull request #128 from akire/windows-universal-build
Windows universal build
2017-03-26 04:04:43 -07:00
Lev Walkin e088a2b07a Merge branch 'master' into windows-universal-build 2017-03-26 04:04:32 -07:00
Lev Walkin 9e0bf1b87a refer to defined macro 2017-03-26 04:03:43 -07:00
Lev Walkin 2e8ee8d5be Merge pull request #96 from brchiu/fix_declaration_inside_parameter_list_warning
Fix 'declaration inside parameter list' warning
2017-03-26 04:01:01 -07:00
Lev Walkin 4aa1e96d44 regenerated for version bump 2017-03-26 03:56:53 -07:00
Lev Walkin fc9687925f author fix 2017-03-26 03:52:57 -07:00