Commit Graph

1762 Commits

Author SHA1 Message Date
Bi-Ruei, Chiu e86ebcff26 Add README files 2017-05-05 18:26:04 +08:00
Bi-Ruei, Chiu 81ac21519b Add LTE-RRC example 2017-04-21 13:28:34 +08: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
Lev Walkin 7e6775786d Merge pull request #90 from brchiu/fix_escape_character_missing
Solve "make check-per" failed on Lubuntu
2017-03-26 03:51:30 -07:00
Lev Walkin d27d5b5e72 Merge pull request #89 from brchiu/unify_specs_variable_name
Unify the naming of asn_OCTET_STRING_specifics_t variables
2017-03-26 03:50:37 -07:00
Lev Walkin a964e03306 removed more unnecessary checks 2017-03-26 03:48:48 -07:00
Lev Walkin fa9bb6dcfd version bump 2017-03-26 03:48:47 -07:00
Lev Walkin 98c6b31eca Merge pull request #87 from elfring/Remove_unnecessary_checks1
Delete unnecessary checks before some function calls
2017-03-26 03:43:23 -07:00
Lev Walkin 792b22b912 date 2017-03-26 03:29:55 -07:00
Lev Walkin f43b5025ae include INSTALL into distribution 2017-03-26 03:25:57 -07:00
Lev Walkin 997d4c78e6 copyright info 2017-03-26 03:16:05 -07:00
Lev Walkin 9413414cdd better dir 2017-03-26 03:11:02 -07:00
Bi-Ruei, Chiu 9b87e5b095 Fix 'declaration inside parameter list' warning
1. Add forward definition section.
2. Move type definition inside A_SEQUENCE_OF() to forward definition section.
3. Modify asn1c_lang_C_type_CHOICE() ...etc functions to achieve it.
4. Modify test cases used during 'make check'.
2017-03-15 16:18:46 +08:00
Vasil Velichkov e5006dc658 Add check64-134.-gen-PER.c to EXTRA_DIST
becuse the `make dist` does not include it in the archive and
`make distckeck` fails on 64bit systems
2016-12-13 18:13:23 +02:00
Vasil Velichkov 89c49eeff8 Rewrite the 64bit test. Fixes #131
The old test was not working at all and was failing on both 32 and 64
bit systems with

configure:13545: checking size of long is longer than 32 bit
configure:13561: gcc -c -g -O2 -Wall -Wcast-qual -Wchar-subscripts
-Wmissing-prototypes -Wmissing-declarations -Wno-error=cast-align
conftest.c >&5
conftest.c: In function 'main':
conftest.c:32:34: error: 'dummy' undeclared (first use in this function)
 switch (0) case 0: case (sizeof (dummy) >= 8):;
                                  ^
conftest.c:32:34: note: each undeclared identifier is reported only once
for each function it appears in
2016-12-13 17:14:57 +02:00