Commit Graph

14 Commits

Author SHA1 Message Date
Pau Espin 3e483e5950 Disable _ASN_STACK_OVERFLOW_CHECK if building with Asan enabled
Related: OS#6025
Change-Id: I2dda4720f3ea5a023d340863db177e6334beeaa3
2023-05-05 13:15:54 +02:00
Harald Welte b7c145daa4 Fix compiler warning
In file included from asn1helpers.c:14:0:
../include/asn1c/asn1helpers.h: In function ‘OCTET_STRING_noalloc’:
../include/asn1c/asn1helpers.h:26:9: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  s->buf = str;
         ^

Change-Id: Ie2fefe710090de779137c36b98239ef4a097b6dd
2017-10-27 22:05:13 +02:00
Holger Hans Peter Freyther f3c3049e75 misc: Replace libosmocore with talloc
The libosmocore depedency is used for talloc and OSMO_ASSERT.
Reduce the depedencies by using libtalloc directly and replace
the ASSERT with a local one (without backtrace support).
2016-04-05 16:43:39 +02:00
Neels Hofmeyr de48e262e2 remove config.h include from asn_system.h 2016-02-16 12:58:10 +01:00
Daniel Willmann 95a112f75a Add helper functions for uint32_t in octet strings 2016-02-16 12:10:36 +01:00
Harald Welte 2d4f2bd91c import ans1helpers.[ch] (originally part of osmo-iuh) 2016-01-03 17:14:54 +01:00
Harald Welte a37b06d735 add '--enable-debug' configure option to build with EMIT_ASN_DEBUG
... which in turn causes all the ASN_DEBUG() to be turned into
fprintf(stderr, ...) statements, once the user application decides
to set 'asn_debug = 1' somewhere in its code.

The next step would be to make _ASN_DECODE_FAILED / _ASN_ENCODE_FAILED
no longer depend on ASN_DEBUG (which it currently does)
2015-12-18 15:38:42 +01:00
Harald Welte 41b85d5597 update to asn1c aper branch commit 6e00cbce7304a6972e82a12bb5fa82e41fa541be
which is closes to Lev Walkins master 62913d8b8e1eb96d74315ff748475ca818b69752
2015-08-31 09:35:13 +02:00
Harald Welte a68b3a37c5 use include/osmocom/core instead of include/osmocore 2011-10-14 20:35:00 +02:00
Sylvain Munaut b9d517e755 src: Add verbose pretty print for enumerated types
This is just much easier to read when reading the text
dumps.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-20 00:10:38 +02:00
Harald Welte 6264d3d94b we have to replace calloc with talloc_zero_size() to ensure initialization 2010-07-20 00:05:07 +02:00
Harald Welte fa034009a1 Convert libasn1c to use talloc from libosmocore 2010-07-20 00:05:07 +02:00
Harald Welte ec0e217b06 Update to asn1c official repository svn trunk r1409 2010-07-20 00:03:44 +02:00
Harald Welte 98cb83615d move header files to 'include' directory and install them 2010-06-12 19:15:51 +02:00