Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
asn1c
Commits
3f995631
Commit
3f995631
authored
7 years ago
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cross-compile-safe options
parent
5230c64b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
27 deletions
+14
-27
skeletons/INTEGER.c
skeletons/INTEGER.c
+1
-1
skeletons/NativeEnumerated_oer.c
skeletons/NativeEnumerated_oer.c
+1
-1
skeletons/OBJECT_IDENTIFIER.c
skeletons/OBJECT_IDENTIFIER.c
+1
-1
skeletons/REAL.c
skeletons/REAL.c
+3
-3
skeletons/asn_application.h
skeletons/asn_application.h
+1
-1
skeletons/asn_internal.h
skeletons/asn_internal.h
+1
-1
skeletons/asn_system.h
skeletons/asn_system.h
+5
-18
skeletons/per_opentype.c
skeletons/per_opentype.c
+1
-1
No files found.
skeletons/INTEGER.c
View file @
3f995631
...
...
@@ -788,7 +788,7 @@ INTEGER_encode_uper(asn_TYPE_descriptor_t *td,
/*
* This function is only to get rid of Undefined Behavior Sanitizer warning.
*/
static
intmax_t
C
LANG
_NO_SANITIZE
(
"shift-base"
)
static
intmax_t
C
C
_NO_SANITIZE
(
"shift-base"
)
asn__safe_integer_convert_helper
(
const
uint8_t
*
b
,
const
uint8_t
*
end
)
{
intmax_t
value
;
...
...
This diff is collapsed.
Click to expand it.
skeletons/NativeEnumerated_oer.c
View file @
3f995631
...
...
@@ -12,7 +12,7 @@
/*
* This function is only to get rid of Undefined Behavior Sanitizer warning.
*/
static
intmax_t
C
LANG
_NO_SANITIZE
(
"shift-base"
)
static
intmax_t
C
C
_NO_SANITIZE
(
"shift-base"
)
asn__safe_nativeenumerated_convert_helper
(
const
uint8_t
*
b
,
const
uint8_t
*
end
)
{
intmax_t
value
;
...
...
This diff is collapsed.
Click to expand it.
skeletons/OBJECT_IDENTIFIER.c
View file @
3f995631
...
...
@@ -82,7 +82,7 @@ OBJECT_IDENTIFIER_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
int
OBJECT_IDENTIFIER_get_single_arc
(
const
uint8_t
*
arcbuf
,
unsigned
int
arclen
,
signed
int
add
,
void
*
rvbufp
,
unsigned
int
rvsize
)
{
unsigned
LE
G
CC_NOTUSED
=
1
;
/* Little endian (x86) */
unsigned
LE
CC_NOTUSED
=
1
;
/* Little endian (x86) */
const
uint8_t
*
arcend
=
arcbuf
+
arclen
;
/* End of arc */
unsigned
int
cache
=
0
;
/* No more than 14 significant bits */
unsigned
char
*
rvbuf
=
(
unsigned
char
*
)
rvbufp
;
...
...
This diff is collapsed.
Click to expand it.
skeletons/REAL.c
View file @
3f995631
...
...
@@ -20,7 +20,7 @@
#define INT_MAX ((int)(((unsigned int)-1) >> 1))
#if !(defined(NAN) || defined(INFINITY))
static
volatile
double
real_zero
G
CC_NOTUSED
=
0
.
0
;
static
volatile
double
real_zero
CC_NOTUSED
=
0
.
0
;
#endif
#ifndef NAN
#define NAN (real_zero/real_zero)
...
...
@@ -667,8 +667,8 @@ asn_double2REAL(REAL_t *st, double dbl_value) {
uint8_t
buf
[
16
];
/* More than enough for 8-byte dbl_value */
uint8_t
dscr
[
sizeof
(
dbl_value
)];
/* double value scratch pad */
/* Assertion guards: won't even compile, if unexpected double size */
char
assertion_buffer1
[
9
-
sizeof
(
dbl_value
)]
G
CC_NOTUSED
;
char
assertion_buffer2
[
sizeof
(
dbl_value
)
-
7
]
G
CC_NOTUSED
;
char
assertion_buffer1
[
9
-
sizeof
(
dbl_value
)]
CC_NOTUSED
;
char
assertion_buffer2
[
sizeof
(
dbl_value
)
-
7
]
CC_NOTUSED
;
uint8_t
*
ptr
=
buf
;
uint8_t
*
mstop
;
/* Last byte of mantissa */
unsigned
int
mval
;
/* Value of the last byte of mantissa */
...
...
This diff is collapsed.
Click to expand it.
skeletons/asn_application.h
View file @
3f995631
...
...
@@ -134,7 +134,7 @@ asn_dec_rval_t asn_decode(
typedef
void
(
asn_app_constraint_failed_f
)(
void
*
application_specific_key
,
struct
asn_TYPE_descriptor_s
*
type_descriptor_which_failed
,
const
void
*
structure_which_failed_ptr
,
const
char
*
error_message_format
,
...)
G
CC_PRINTFLIKE
(
4
,
5
);
const
char
*
error_message_format
,
...)
CC_PRINTFLIKE
(
4
,
5
);
#ifdef __cplusplus
...
...
This diff is collapsed.
Click to expand it.
skeletons/asn_internal.h
View file @
3f995631
...
...
@@ -108,7 +108,7 @@ static void ASN_DEBUG(const char *fmt, ...) { (void)fmt; }
* Check stack against overflow, if limit is set.
*/
#define ASN__DEFAULT_STACK_MAX (30000)
static
int
G
CC_NOTUSED
static
int
CC_NOTUSED
ASN__STACK_OVERFLOW_CHECK
(
const
asn_codec_ctx_t
*
ctx
)
{
if
(
ctx
&&
ctx
->
max_stack_size
)
{
...
...
This diff is collapsed.
Click to expand it.
skeletons/asn_system.h
View file @
3f995631
...
...
@@ -105,26 +105,13 @@ typedef unsigned int uint32_t;
#endif
/* _WIN32 */
#if __GNUC__ >= 3 || defined(__clang__)
#ifndef GCC_PRINTFLIKE
#define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
#endif
#ifndef GCC_NOTUSED
#define GCC_NOTUSED __attribute__((unused))
#endif
#else
#ifndef GCC_PRINTFLIKE
#define GCC_PRINTFLIKE(fmt,var)
/* nothing */
#endif
#ifndef GCC_NOTUSED
#define GCC_NOTUSED
#endif
#endif
#if defined(__clang__)
#define CLANG_NO_SANITIZE(what) __attribute__((no_sanitize(what)))
#define CC_ATTRIBUTE(attr) __attribute__((attr))
#else
#define C
LANG_NO_SANITIZE(what
)
#define C
C_ATTRIBUTE(attr
)
#endif
#define CC_PRINTFLIKE(fmt, var) CC_ATTRIBUTE(format(printf, fmt, var))
#define CC_NOTUSED CC_ATTRIBUTE(unused)
#define CC_NO_SANITIZE(what) CC_ATTRIBUTE(no_sanitize(what))
/* Figure out if thread safety is requested */
#if !defined(ASN_THREAD_SAFE) && (defined(THREAD_SAFE) || defined(_REENTRANT))
...
...
This diff is collapsed.
Click to expand it.
skeletons/per_opentype.c
View file @
3f995631
...
...
@@ -134,7 +134,7 @@ uper_open_type_get_simple(const asn_codec_ctx_t *ctx, asn_TYPE_descriptor_t *td,
return
rv
;
}
static
asn_dec_rval_t
G
CC_NOTUSED
static
asn_dec_rval_t
CC_NOTUSED
uper_open_type_get_complex
(
const
asn_codec_ctx_t
*
ctx
,
asn_TYPE_descriptor_t
*
td
,
asn_per_constraints_t
*
constraints
,
void
**
sptr
,
asn_per_data_t
*
pd
)
{
uper_ugot_key
arg
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment