Comments (4)
@vlm I had initially hoped it'd be more expedient to highlight the bug (from casual reading). When @pzb pointed out it'd been open for over a year and a half, I decided it was worth the hassle to go through our internal open-source licensing process if it would help get it merged :)
from asn1c.
@vlm - This looks like an easy fix, as the SEQUENCE skeleton for uper already appears to handle this logic, since it has to handle the presence bitmap & encoding.
It looks like if
asn1c/skeletons/constr_SEQUENCE.c
Lines 1376 to 1394 in 6b949bb
asn1c/skeletons/constr_SEQUENCE.c
Lines 530 to 539 in 6b949bb
asn1c/skeletons/constr_SEQUENCE.c
Lines 569 to 574 in 6b949bb
(Unfortunately, I cannot contribute that patch myself)
from asn1c.
@vlm Turns out it was messier than I realized - for BOOLEANS with DEFAULT values (ATV_TRUE, ATV_FALSE as literals), no default function was being associated at all. This would also affect cases of PER/XER.
I created #181 to try and fix this, with tests. I'm not terribly thrilled with the tests, but they do highlight the issue and cover both SEQUENCEs and SETs. Could you take a look?
from asn1c.
Merged, thank you!
@sleevi if you don't mind me asking, I am curious why couldn't you create a patch yourself and then ended up creating it anyway?
from asn1c.
Related Issues (20)
- fatal_error: asn_application.h: No such file or directory
- Is this library actually working? HOT 3
- sysexits.h error HOT 1
- /usr/bin/ld: converter-sample.o:(.data.rel+0x0): undefined reference to `asn_DEF_PDU' HOT 3
- Extensible integer with a max value in the extension UPER decoding
- definition of struct ProtocolIE_SingleContainer missing HOT 1
- 'Member' cannot be defined in a parameter type
- setenv and unsetenv not working in Windows
- Unable to parse the asn file for mms in wireshark because it references an external structure HOT 2
- v0.9.28 - Leftshift of negative value
- Problem installing HOT 4
- Problem switching between the versions of asn1c in Windows
- Where the "timezone" variable is defined.
- No defination of random() in asn_random_fill.c HOT 2
- Problem compiling: contains no objects
- make check in skeletons fails to build on WSL 22.4
- Syntax error: token "WITH" HOT 1
- undefined reference to BIT_STRING_decode_oer , OCTET_STRING_decode_oer in ASN1C compiler
- Tried generating coverage report for this but getting lcov error
- Getting Segmentation fault on running asn1c with some changes to source file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asn1c.