aboutsummaryrefslogtreecommitdiffstats
path: root/libasn1fix
AgeCommit message (Collapse)AuthorFilesLines
2017-11-13Fix crash when processing S1APBi-Ruei, Chiu1-2/+2
Ref : https://github.com/vlm/asn1c/pull/237#issuecomment-342356046
2017-11-13Fix memory leakeageBi-Ruei, Chiu1-0/+3
2017-11-06use hash for name lookupLev Walkin4-41/+45
2017-10-20Fix error during 'make check'Bi-Ruei, Chiu1-2/+2
2017-10-20Solve the problem that information object table with one entry can not be ↵Bi-Ruei, Chiu1-1/+5
properly handled E-RABToBeSetupItemBearerSUReqIEs S1AP-PROTOCOL-IES ::= { { ID id-E-RABToBeSetupItemBearerSUReq CRITICALITY reject TYPE E-RABToBeSetupItemBearerSUReq PRESENCE mandatory }, ... } result in 'FATAL: Information Object Set E-RABToBeSetupItemBearerSUReqIEs contains no objects at line xxxx' If it contains more than one entry then there is no problem. E-RABSetupRequestIEs S1AP-PROTOCOL-IES ::= { { ID id-MME-UE-S1AP-ID CRITICALITY reject TYPE MME-UE-S1AP-ID PRESENCE mandatory }| { ID id-eNB-UE-S1AP-ID CRITICALITY reject TYPE ENB-UE-S1AP-ID PRESENCE mandatory }| { ID id-uEaggregateMaximumBitrate CRITICALITY reject TYPE UEAggregateMaximumBitrate PRESENCE optional }| { ID id-E-RABToBeSetupListBearerSUReq CRITICALITY reject TYPE E-RABToBeSetupListBearerSUReq PRESENCE mandatory }, ... }
2017-10-20Pass evaluated arguments to members and type referencesBi-Ruei, Chiu1-6/+28
One of the most tricky ASN.1 excerpt : E-RABDataForwardingItemIEs S1AP-PROTOCOL-IES ::= { { ID id-E-RABDataForwardingItem CRITICALITY ignore TYPE E-RABDataForwardingItem PRESENCE mandatory }, ... } E-RABSubjecttoDataForwardingList ::= E-RAB-IE-ContainerList { {E-RABDataForwardingItemIEs} } E-RAB-IE-ContainerList { S1AP-PROTOCOL-IES : IEsSetParam } ::= ProtocolIE-ContainerList { 1, maxnoofE-RABs, {IEsSetParam} } ProtocolIE-ContainerList {INTEGER : lowerBound, INTEGER : upperBound, S1AP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE (SIZE (lowerBound..upperBound)) OF ProtocolIE-SingleContainer {{IEsSetParam}} ProtocolIE-SingleContainer {S1AP-PROTOCOL-IES : IEsSetParam} ::= ProtocolIE-Field {{IEsSetParam}} ProtocolIE-Field {S1AP-PROTOCOL-IES : IEsSetParam} ::= SEQUENCE { id S1AP-PROTOCOL-IES.&id ({IEsSetParam}), criticality S1AP-PROTOCOL-IES.&criticality ({IEsSetParam}{@id}), value S1AP-PROTOCOL-IES.&Value ({IEsSetParam}{@id}) }
2017-10-20Fix unrecognized value type for reject/ignoreBi-Ruei, Chiu1-1/+27
In Module_1, Criticality ::= ENUMERATED { reject, ignore, notify } In Module_2, IMPORTS Criticality FROM Module_1 someMessage SOME-CLASS ::= { CRITICALITY ignore } This pull request add the capability to resolve 'reject', 'ignore' and 'notify' in Module_2.
2017-10-20Fix 'Information Object Set XXX contains no objects' when parsing S1AP's ASN.1Bi-Ruei, Chiu2-1/+24
The aforementioned error message displayed during processing the following ASN.1 excerpt. S1AP-ELEMENTARY-PROCEDURES S1AP-ELEMENTARY-PROCEDURE ::= { S1AP-ELEMENTARY-PROCEDURES-CLASS-1 | S1AP-ELEMENTARY-PROCEDURES-CLASS-2, ... } S1AP-ELEMENTARY-PROCEDURES-CLASS-1 S1AP-ELEMENTARY-PROCEDURE ::= { handoverPreparation | ... writeReplaceWarning, ..., uERadioCapabilityMatch | .... uEContextResume } S1AP-ELEMENTARY-PROCEDURES-CLASS-2 S1AP-ELEMENTARY-PROCEDURE ::= { handoverNotification | ... privateMessage, ..., downlinkUEAssociatedLPPaTransport | ... mMECPRelocationIndication } Because S1AP-ELEMENTARY-PROCEDURES-CLASS-1 and S1AP-ELEMENTARY-PROCEDURES-CLASS-2 are resolved 'after' S1AP-ELEMENTARY-PROCEDURES, so the ioc tables of them are not available during resolving S1AP-ELEMENTARY-PROCEDURES. So we can not drop the latter's containedSubtype field at first pass of asn1f_resolve_constraints of fix process. We also add second pass of asn1f_resolve_constraints to have a chance to combine ioc tables of S1AP-ELEMENTARY-PROCEDURES-CLASS-1 and S1AP-ELEMENTARY-PROCEDURES-CLASS-2.
2017-10-19removed gcc-7 warningsLev Walkin5-16/+24
2017-10-11corrected to the best known range (fixed after X.696 Corrigendum 1)Lev Walkin1-1/+1
2017-10-08cosmeticsLev Walkin1-45/+42
2017-10-08ignore garbage in the tests directoryLev Walkin1-1/+1
2017-10-05for OER use IEEE754 binary32 and binary64 format over the wireLev Walkin2-3/+3
2017-10-04take into account X696 Corrigendum 1 (05/2017)Lev Walkin1-2/+2
2017-10-04narrowing to support 32-bit floatsLev Walkin3-33/+251
2017-09-26remove namespace leakLev Walkin1-0/+1
2017-09-11ignore single value constraint which looks like a (bit)string itselfLev Walkin1-26/+42
2017-09-08remove extra logLev Walkin1-1/+0
2017-09-07ENUMERATION can not be emptyLev Walkin2-5/+7
2017-09-06parse advanced WITH COMPONENTSLev Walkin1-54/+67
2017-08-23avoid generating references to empty mapsLev Walkin1-7/+8
2017-08-23empty information object sets are OKLev Walkin1-35/+43
2017-08-23parameterized referencing of information object setsLev Walkin1-4/+4
2017-08-23specialization fix, tested on value specializationLev Walkin1-43/+4
2017-08-22introduce namespacesLev Walkin19-383/+552
2017-08-22add common libLev Walkin1-30/+33
2017-08-10fix ioc value encodingLev Walkin1-31/+41
2017-08-10reshuffled the tests layoutLev Walkin2-3/+3
2017-08-07refactor constraint matrix handlingLev Walkin1-43/+39
2017-08-06rm warningsLev Walkin2-5/+3
2017-08-06better parsing information object class setsLev Walkin10-84/+245
2017-08-04work in 128-bit integer values while compilingLev Walkin3-12/+14
2017-08-02Simplify the logic of accessing codec function for specific TYPEBi-Ruei, Chiu4-0/+40
2017-08-02oer constraints (incomplete)Lev Walkin1-26/+79
2017-08-02add constraint debugLev Walkin3-14/+22
2017-08-02clarification that EXCEPT is ignored in both PER and OERLev Walkin1-1/+3
2017-08-02account for a wider structureLev Walkin1-15/+14
2017-08-02a pass over OER constraintsLev Walkin2-20/+77
2017-06-27remove commentLev Walkin1-1/+1
2017-05-07Merge PR99 and its fixes to support parsing Information Object and ↵Bi-Ruei, Chiu8-78/+289
Information Object Set This is a collection of works : 1. Based on @zhanglei002's pull request 99. 2. A fix by @AuthenticEshkinKot and merged by @mouse07410 at commit 2c8d366bbe1fc4e4c041e9b0eb9779f8a42d754b of https://github.com/mouse07410/asn1c to support parsing of Information Object and Information Object Set 3. A fix by @Uri Blumenthal in asn1fix_derefv.c at : commit ec0ade4f87c807e763e3f35fc5466adb6dda3473 of https://github.com/mouse07410/asn1c to solve crash on asn1p_value_free(). 4. My pull request 18 to @mouse07410's https://github.com/mouse07410/asn1c to solve problems found during parsing ASN.1 modules of S1AP, RANAP and J2735-201603. 5. My pull request 22 to @mouse07410's https://github.com/mouse07410/asn1c to solve issue 147 and to solve the problem during parsing ASN.1 module of NBAP. 6. My pull request 23 to @mouse07410's https://github.com/mouse07410/asn1c to fix memory leakage introduced in aforementioned commits. Most code changes are the same as pull request 153 to this repository. 7. A fix of my bug in item 6 which result asn1c crash, fixed by @mouse07410.
2017-05-05Fix some memory leakage foundBi-Ruei, Chiu3-3/+5
2017-03-26Add code coverage using lcov and gcovVasil Velichkov1-0/+1
To generate the code coverage report you need gcov and lcov installed and then execute ./configure --enable-code-coverage make check-code-coverage Writing directory view page. Overall coverage rate: lines......: 76.5% (10519 of 13759 lines) functions..: 85.5% (491 of 574 functions) branches...: 57.5% (7040 of 12250 branches) file:///home/user/asn1c/asn1c-0.9.28-coverage/index.html Open the index.html with a web browser
2016-03-15Bug #86: Deletion of unnecessary checks before calls of the function "free"Markus Elfring2-5/+3
The function "free" is documented in the way that no action shall occur for a passed null pointer. It is therefore not needed that a function caller repeats a corresponding check. http://stackoverflow.com/questions/18775608/free-a-null-pointer-anyway-or-check-first This issue was fixed by using the software "Coccinelle 1.0.4". Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2016-03-14undo skeletons hierarchy detectionLev Walkin1-12/+5
2016-03-14more explicit test specLev Walkin1-1/+1
2016-03-14infer skeletons levelLev Walkin1-6/+13
2016-03-14go one dir deeper, still, if possibleLev Walkin1-3/+1
2016-03-14another attempt at travis debugLev Walkin1-1/+1
2016-03-14do not use reserved identifiersLev Walkin18-54/+54
2016-03-13another attempt at travis debugLev Walkin2-2/+2