Comments (3)
Hi,
I found two bugs in the BER codec thanks to your report:
-
The SEQUENCE OF decoder ignores the tag, which it shouldn't. This is easy to fix, and I already fixed it locally.
-
AUTOMATIC, EXPLICIT and IMPLICIT tagging is not compliant with the ASN.1 specifications. Tagging of the CHOICE type is wrong for sure. I'll have to investigate this further.
from asn1tools.
I fixed 1. in b7b9e28. 2. will take longer to fix. Unclear when it will be ready.
from asn1tools.
Version 0.25.0 can successfully decode dump.txt using structure.txt and type VoiceManagerMsg. It's uploaded to PyPI, install with pip install -U asn1tools
.
>>> import asn1tools
>>> f = asn1tools.compile_files('structure.txt')
>>> f.decode('VoiceManagerMsg', open('dump.txt', 'rb').read())
{'phone': {'time-st': {'nsec': 353258578, 'sec': 1517541551}, 'call-id': '[email protected]', 'phone-msg': {'m-call': {'group-id': 'intouch', 'call
ed-pn': {'presentation': 0, 'nai': 4, 'number': '79958290016'}, 'calling-pn': {'presentation': 0, 'nai': 4, 'number': '79832650742'}, 'called-contact': {'uri': {'host': '11.
11.1.4', 'user': '+79958290016'}, 'nickname': '+79958290016'}, 'calling-contact': {'uri': {'host': '10.51.34.6', 'user': '+79832650742'}, 'nickname': '+79832650742', 'parame
ters': [{'value': '8a11i8td-CC-1003-OFC-14', 'key': 'tag'}]}, 'location-pn': {'presentation': 0, 'nai': 4, 'number': '79135999991'}}}}}
>>>
from asn1tools.
Related Issues (20)
- Missing support for BCDString in BER HOT 1
- asn1tools.codecs.ber.DecodeTagError: HOT 2
- GSER decoding is not implemented
- Support for CLASS HOT 1
- Generate C source: Unsupported type 'BIT STRING' HOT 3
- Unsupported type 'BIT STRING' error in generate C source uper HOT 3
- python asn1tools BitString uper encoded wrong value HOT 1
- Objects set members are not parsed at all HOT 2
- ASN1Tools Fails to Compile 3GPP Release 16 ASN.1 HOT 3
- Expected enumeration index 0, 1 or 2, but got 3
- Generated C OER decoder fails to decode fixed-length sequences with lengths of more than 255
- Decode successfully ignores extra bytes HOT 2
- encode_message() fails to validate ASN.1 BIT STRING SIZE constraints
- how to parse the "CONTAING SEQUENCE" msg immediately HOT 1
- Compile nrppa using PER fail
- How to view encoded values
- Test failures with pyparsing 3.1.1 HOT 4
- oer c code generation fails when addition contains a sequence with enums (type error) HOT 2
- decoding erros HOT 9
- SEQUENCE OF has no maximum length 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 asn1tools.