aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/INTEGER.c10
-rw-r--r--src/Makefile.am13
-rw-r--r--src/constr_CHOICE.c4
-rw-r--r--src/per_decoder.c2
4 files changed, 22 insertions, 7 deletions
diff --git a/src/INTEGER.c b/src/INTEGER.c
index b3f0da1..1e62b2c 100644
--- a/src/INTEGER.c
+++ b/src/INTEGER.c
@@ -775,8 +775,8 @@ INTEGER_decode_aper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
? asn_ulong2INTEGER(st, value)
: asn_long2INTEGER(st, value))
_ASN_DECODE_FAILED;
- ASN_DEBUG("Got value %ld + low %lld",
- value, ct->lower_bound);
+ ASN_DEBUG("Got value %ld + low %lld",
+ value, ct->lower_bound);
}
return rval;
} else {
@@ -1336,9 +1336,12 @@ asn_int642INTEGER(INTEGER_t *st, int64_t value) {
}
break;
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
/* Copy the integer body */
for(pstart = p, bp = buf, pend1 += add; p != pend1; p += add)
*bp++ = *p;
+#pragma GCC diagnostic pop
if(st->buf) FREEMEM(st->buf);
st->buf = buf;
@@ -1391,9 +1394,12 @@ asn_long2INTEGER(INTEGER_t *st, long value) {
}
break;
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
/* Copy the integer body */
for(pstart = p, bp = buf, pend1 += add; p != pend1; p += add)
*bp++ = *p;
+#pragma GCC diagnostic pop
if(st->buf) FREEMEM(st->buf);
st->buf = buf;
diff --git a/src/Makefile.am b/src/Makefile.am
index 29b5e64..5e9a0d7 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,7 +1,7 @@
# This is _NOT_ the library release version, it's an API version.
# Please read Chapter 6 "Library interface versions" of the libtool
# documentation before making any modification
-LIBVERSION=1:1:0
+LIBVERSION=1:2:0
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include/asn1c
AM_CFLAGS = -fPIC -Wall $(LIBTALLOC_CFLAGS)
@@ -11,5 +11,14 @@ endif
lib_LTLIBRARIES = libasn1c.la
-libasn1c_la_LDFLAGS = $(LIBTALLOC_LIBS) -lm -version-info $(LIBVERSION) -no-undefined
+libasn1c_la_LIBADD = \
+ $(LIBTALLOC_LIBS) \
+ -lm \
+ $(NULL)
+
+libasn1c_la_LDFLAGS = \
+ -version-info $(LIBVERSION) \
+ -no-undefined \
+ $(NULL)
+
libasn1c_la_SOURCES = ANY.c constraints.c GeneralizedTime.c NumericString.c T61String.c asn_codecs_prim.c constr_CHOICE.c GeneralString.c ObjectDescriptor.c TeletexString.c asn_SEQUENCE_OF.c constr_SEQUENCE.c GraphicString.c OBJECT_IDENTIFIER.c UniversalString.c asn_SET_OF.c constr_SEQUENCE_OF.c IA5String.c OCTET_STRING.c UTCTime.c ber_decoder.c constr_SET.c INTEGER.c per_decoder.c UTF8String.c ber_tlv_length.c constr_SET_OF.c ISO646String.c per_encoder.c VideotexString.c ber_tlv_tag.c constr_TYPE.c NativeEnumerated.c per_support.c VisibleString.c BIT_STRING.c NativeInteger.c PrintableString.c xer_decoder.c BMPString.c der_encoder.c NativeReal.c REAL.c xer_encoder.c BOOLEAN.c ENUMERATED.c NULL.c RELATIVE-OID.c xer_support.c per_opentype.c asn1helpers.c
diff --git a/src/constr_CHOICE.c b/src/constr_CHOICE.c
index 18c24cd..df68feb 100644
--- a/src/constr_CHOICE.c
+++ b/src/constr_CHOICE.c
@@ -1134,8 +1134,8 @@ CHOICE_encode_aper(asn_TYPE_descriptor_t *td,
if(per_put_few_bits(po, present, ct->range_bits))
_ASN_ENCODE_FAILED;
- return elm->type->aper_encoder(elm->type, elm->per_constraints,
- memb_ptr, po);
+ return elm->type->aper_encoder(elm->type, elm->per_constraints,
+ memb_ptr, po);
} else {
asn_enc_rval_t rval;
if(specs->ext_start == -1)
diff --git a/src/per_decoder.c b/src/per_decoder.c
index 20fe1a1..b5056b5 100644
--- a/src/per_decoder.c
+++ b/src/per_decoder.c
@@ -160,7 +160,7 @@ aper_decode(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, void **sp
*/
if(!td->aper_decoder)
_ASN_DECODE_FAILED; /* PER is not compiled in */
- rval = td->aper_decoder(opt_codec_ctx, td, 0, sptr, &pd);
+ rval = td->aper_decoder(opt_codec_ctx, td, 0, sptr, &pd);
if(rval.code == RC_OK) {
/* Return the number of consumed bits */
rval.consumed = ((pd.buffer - (const uint8_t *)buffer) << 3)