Commit Graph

1839 Commits

Author SHA1 Message Date
theirix b577d4d881 Locate AR using standard macro
- Use AM_PROG_AR to locate AR (debian complains about AC_PATH_PROG)
- Added a fallback for automake < 1.12
- Moved LT_INIT because it depends on AM_* macro
2016-07-30 17:40:17 +03:00
theirix 34ee7fbed9 Fixed a mistype in man 2016-07-30 17:23:32 +03:00
Vasil Velichkov febd3d5a02 Fix segmentation fault in asn1c_make_identifier
See also http://stackoverflow.com/questions/25390720/va-arg-gives-something-strange-in-cygwin-x64

  Program received signal SIGSEGV, Segmentation fault.
  (gdb) bt
  #0  0x00007ffff7b7c8f1 in __strlen_sse2_pminub () from /lib64/libc.so.6
  #1  0x0000000000425d29 in asn1c_make_identifier (flags=flags@entry=(AMI_MASK_ONLY_SPACES | AMI_NODELIMITER), expr=expr@entry=0x0) at asn1c_misc.c:73
  #2  0x00000000004263ec in asn1c_type_name (arg=arg@entry=0x7fffffffe000, expr=expr@entry=0x6757c0, _format=<optimized out>,
      _format@entry=TNF_INCLUDE) at asn1c_misc.c:268
  #3  0x00000000004226fc in asn1c_lang_C_type_SIMPLE_TYPE (arg=arg@entry=0x7fffffffe000) at asn1c_C.c:1119
  #4  0x00000000004232c1 in asn1c_lang_C_type_common_INTEGER (arg=0x7fffffffe000) at asn1c_C.c:251
  #5  0x0000000000419c75 in asn1c_compile_expr (arg=arg@entry=0x7fffffffe000) at asn1compiler.c:100
  #6  0x0000000000419f33 in asn1_compile (asn=asn@entry=0x671e10, datadir=datadir@entry=0x426730 "/home/vasko/usr/share/asn1c",
      flags=flags@entry=A1C_NO_C99, argc=2, optc=0, argv=0x7fffffffe268) at asn1compiler.c:44
  #7  0x0000000000401f13 in main (ac=1, av=0x7fffffffe270) at asn1c.c:328
2016-07-18 20:24:49 +03:00
Vasil Velichkov b97d65a2b9 Fix test execution on RHEL7
The `make check` was failing with

make[3]: Entering directory `/home/asn1c/asn1c_github/asn1c/tests'
../../config/test-driver: invalid option: '-C'
Usage:
  test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
              [--expect-failure={yes|no}] [--color-tests={yes|no}]
              [--enable-hard-errors={yes|no}] [--] TEST-SCRIPT
The '--test-name', '--log-file' and '--trs-file' options are mandatory.
make[3]: *** [check-src/check-03.-fwide-types.c.log] Error 2
2016-07-18 20:21:08 +03:00
Alexander Duryagin bc6243e653 use wide types to decode x509 certificate in examples, solves #47 2016-07-08 15:51:12 +03:00
Lev Walkin e9b0fd77c9 some shellcheck recommendations 2016-07-03 00:10:07 -07:00
Lev Walkin 344520699c oops; fixed argument substitution 2016-07-03 07:06:42 +00:00
Lev Walkin 92876d38dd checked with shellcheck 2016-07-03 00:00:41 -07:00
Lev Walkin bce0ce4351 _BSD_SOURCE moved to a more global location 2016-07-02 23:51:32 -07:00
Lev Walkin eabd277f06 _BSD_SOURCE might be defined in unber.c 2016-07-02 23:22:58 -07:00
Lev Walkin 88434eed32 avoid too much verbosity 2016-07-02 23:03:32 -07:00
Lev Walkin 74757c8be3 avoid shifting negative value 2016-07-02 23:02:59 -07:00
Lev Walkin a6040115b3 unlock snprintf on some systems 2016-07-02 23:01:30 -07:00
Lev Walkin f6e4fc9f22 make distcheck works now 2016-07-02 23:44:40 +00:00
Lev Walkin b2adf16083 ignore autogenerated m4 stuff 2016-07-02 23:34:15 +00:00
Lev Walkin d8cc847d87 working better with new automake test suite driver 2016-07-02 23:33:32 +00:00
Lev Walkin 619f0cd736 alloca.h is not universally available 2016-07-02 19:55:23 +00: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
Markus Elfring 671eb9ad14 Bug #86: Deletion of unnecessary checks before a few calls of asn1c functions
The following functions return immediately if a null pointer was passed.
* asn1p_constraint_free
* asn1p_paramlist_free
* asn1p_ref_free
* asn1p_value_free
* asn1p_wsyntx_free

It is therefore not needed that a function caller repeats a corresponding check.

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

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2016-03-14 17:07:26 +01:00
Lev Walkin 0ec6b19a78 try to move it around for travis 2016-03-14 05:17:34 -07:00
Lev Walkin 64dd70cfc1 EMIT_ASN_DEBUG is in skeletons flags 2016-03-14 05:14:07 -07:00
Lev Walkin d60414d957 leave only skeleton flags 2016-03-14 05:11:57 -07:00
Lev Walkin 25307f6eb6 explicit stdio for snprintf 2016-03-14 04:44:03 -07:00
Lev Walkin f379fe3ac9 check-src has its own extra_dist 2016-03-14 04:30:27 -07:00
Lev Walkin f84fc1c23d ignore makefiles 2016-03-14 04:29:50 -07:00
Lev Walkin 681f0590d0 DBL_TRUE_MIN is C11, make it portable 2016-03-14 04:21:26 -07:00
Lev Walkin 19a2118f3c alloca.h for alloca (c89) 2016-03-14 04:15:32 -07:00
Lev Walkin 3798f34a8d tests code uses C99 2016-03-14 04:07:45 -07:00
Lev Walkin 9db13ab322 more verbose builds 2016-03-14 04:04:08 -07:00
Lev Walkin 55982b820a undo skeletons hierarchy detection 2016-03-14 03:56:16 -07:00
Lev Walkin 7623d8c33e try to fetch timegm from the environment 2016-03-14 03:55:21 -07:00
Lev Walkin 4ecc33785d Makefile is part of distribution 2016-03-14 03:49:06 -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 7c1dc05f0e do not use reserved identifiers, contd 2016-03-14 03:08:19 -07:00
Lev Walkin c6cac8e958 do not use reserved identifiers 2016-03-14 02:57:34 -07:00
Lev Walkin 327bab2b53 run autoupdate 2016-03-14 02:36:27 -07:00
Lev Walkin 26303bd894 fixed https://github.com/vlm/asn1c/issues/78 2016-03-14 02:30:52 -07:00
Lev Walkin 034ee194f4 no dereference before check 2016-03-14 02:28:33 -07:00
Lev Walkin f2b2f37660 error values check from printf, fprintf, fwrite 2016-03-14 02:23:48 -07:00
Lev Walkin 4cc4599a7c more diagnostics if memory fails 2016-03-14 02:08:12 -07:00
Lev Walkin 13e57efbd5 removed superfluous check before free 2016-03-14 02:05:23 -07:00
Lev Walkin d8b8364c8a removed unneeded check before free() 2016-03-14 02:00:27 -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 e8eb52b413 ignore .tmp.* files 2016-03-13 16:27:12 -07:00