asn1 Release Notes

## 1 asn1 Release Notes

This document describes the changes made to the asn1 application.

### 1.1 Asn1 1.4.4.11

#### 1.1.1 Fixed Bugs and Malfunctions

- When copiling an asn1 source that reference a type in another source the compiler uses the asn1db file of the other source to resolve the reference. It also tests whether the other source has been updated since the asn1db file was generated. This last test was to brutal in that it exits compilation when no source was found, even though a asn1db file existed. Changed behaviour from a brutal exit to a warning.
  Own Id: OTP-6143

### 1.2 Asn1 1.4.4.10

#### 1.2.1 Fixed Bugs and Malfunctions

- asn1 encoding failed on BIT STRING with constraint `(SIZE (32..MAX))`.
  Own Id: OTP-5932
- Race condition removed in server for variable names for generated code.
  Own Id: OTP-6111

### 1.3 Asn1 1.4.4.9

#### 1.3.1 Fixed Bugs and Malfunctions

- Now exists a default function clause for table lookup of a table constraint. This causes a nice error instead of a crash. Did also remove some obsolete funs ({Mod,Fun}) in generated code.
  Own Id: OTP-5783
- ASN1-compiler faild to derive a value out of an external reference in some certain cases, when compiling specs so that the spec with the reference was compiled before the spec with the defined value.
  Own Id: OTP-5812 Aux Id: seq10133
- The documentation of how records of embedded types are named is extended and made clearer by examples and rules. The section "Naming of Records in .hrl Files" in the User's Guide is added.
  Own Id: OTP-5831 Aux Id: seq10133
- The compiler failed to give right name to record/function of a parametrized type that was referenced through another instance of a parameterized type in another module. The fault occured when modules were compiled in a certain order. Now the compiler resolves the name correctly.
  Own Id: OTP-5832 Aux Id: seq10133

### 1.4 Asn1 1.4.4.8

#### 1.4.1 Fixed Bugs and Malfunctions

- The dynamic sort of SET OF values now correctly handles values encoded in the "ber_bin, der, optimize" mode, the value of a SET OF is a list of binaries.
  Own Id: OTP-5687
- Bad code was generated for an INTEGER with valuerange. If the value that was encoded had a lower bound with negative value it caused a crash. This bug is now removed.
  Own Id: OTP-5688 Aux Id: seq10049
- Compiler now handles wrong include paths by returning an error if a referenced module is not available.
  Own Id: OTP-5689
- The bug causing a runtime error when encoding a type defined by: `BIT STRING {a(1),b(2)}` with the value [] in `per_bin` mode is now removed.
  Own Id: OTP-5710 Aux Id: seq10066

#### 1.4.2 Improvements and New Features

- Better handling of filename paths
  Own Id: OTP-5701

### 1.5 Asn1 1.4.4.7

#### 1.5.1 Fixed Bugs and Malfunctions

- Effective constraint for `per` now corrected. For instance `INTEGER (0|15..269)` didn't work properly.
  Own Id: OTP-5477 Aux Id: OTP-5511
- Adjusted compiler so that functions in generated code only are exported once.
  Own Id: OTP-5509
- Fixed the compiler failure when handling a value range constraint with an extension mark that had the Lower bound and/or Upper bound values as an external reference to a defined value.
  Own Id: OTP-5511 Aux Id: OTP-5466
- Removed sorting of elements for SEQUENCE OF. It shall only be done in SET OF.
  Own Id: OTP-5602
- Corrected code that generated code causing badarith warning.
  Own Id: OTP-5616

### 1.6 Asn1 1.4.4.6

#### 1.6.1 Known Bugs and Problems

- Compiler now correctly crashes when compiling bad values. Failed for instance on INTEGER value that was a reference to a defined value. Also solved problem with a union constraint on an INTEGER.
  Own Id: OTP-5457
- Additional coverage of object set syntax.
  Own Id: OTP-5466

### 1.7 Asn1 1.4.4.5

#### 1.7.1 Fixed Bugs and Malfunctions

- A bug due to representation of open_type values is now fixed. It could cause problem if one used the EXTERNAL type.
  Own Id: OTP-5302
- Due to an internal error the same code could have been generated more than one time. This happened for the exclusive deocode functionality.
  Own Id: OTP-5378

### 1.8 Asn1 1.4.4.4

#### 1.8.1 Fixed Bugs and Malfunctions

- Empty objects caused problems. There was trouble when an object set referenced imported objects that in turn referenced imported types. Lacked support of SelectionType in object. All these have been attended.
  Own Id: OTP-5240

#### 1.8.2 Improvements and New Features

- Now it is possible to inline asn1 run-time functionality in the module generated by the asn1 compiler. Thus, it will be only one module doing all encoding/decoding.
  Own Id: OTP-5243

### 1.9 Asn1 1.4.4.3

#### 1.9.1 Fixed errors and malfunctions

- A class that was referenced in two steps caused a compiler failure. It is now corrected.
  Own Id: OTP-5103

#### 1.9.2 Improvements and new features

- Optionally make it possible to get the undecoded rest along with the return value. Compile with option undec_rest.
  Own Id: OTP-5104

### 1.10 Asn1 1.4.4.2

#### 1.10.1 Fixed errors and malfunctions

- An error due to unchecked referenced imported type resulted in missing tag in some table constraint cases. This error is now corrected. Error occured during decode in `ber_bin optimized` version.
  Own Id: OTP-5022

### 1.11 Asn1 1.4.4.1

#### 1.11.1 Fixed errors and malfunctions

- When a referenced value in another module in turn referenced a defined value the compilation crashed. This is due to the new rutines for compilation, that external referencies are resolved during compilation, and not by the order in which modules are compiled. This error is now corrected.
  Own Id: OTP-4970

### 1.12 Asn1 1.4.4

#### 1.12.1 Fixed errors and malfunctions

- Functionality for parameterized class is added. Parsing failures on WithSyntax spec is corrected.
  Own Id: OTP-4893
- The failure due to Parameterized Type when parameter is an object set is corrected.
  Own Id: OTP-4894
  Aux Id: OTP-4893
- Object Identifier values with two components and teh first was a value reference failed due to parsing conflicts. Now it is corrected.
  Own Id: OTP-4895
- The errorounus comparison of file name and asn1 module name could cause compilation failure. The situation for this failure is rare, it requires that other processes modifies the compiled file during the compilation procedure. It is now fixed.
  Own Id: OTP-4944
  Aux Id: seq8429
- Selective decode was ignored when exclusive decode spec in asn1 configfile was missing. Selective decode failed when the selected type was the top type. These bugs are now removed.
  Own Id: OTP-4953
  Aux Id: seq8436
- The test interface asn1ct:test/1,2,3 and asn1ct:value/2 failed for open type and EXTERNAL. The bug is now removed.
  Own Id: OTP-4955
  Aux Id: seq8438)
- Two equal functions were generated for two components referencing the same type when they were picked by the action "parts". The bug is now fixed.
  Own Id: OTP-4957
  Aux Id: seq8434

#### 1.12.2 Improvements and new features

- INTEGER with named number list and ENUMERATED can now be sub constrained with names from the names list.
  Own Id: OTP-4917
- Now there is support for SelectionType (X 680 section 29)
  Own Id: OTP-4918
- The compiler now resolves circular dependencies. When asn1 specs IMPORTS from each other so that there are circular dependencies.
  Own Id: OTP-4919
- Now is the asn1 type UTF8String supported. For user instructions see documentation.
  Own Id: OTP-4965

There are also release notes for older versions.

Copyright © 1991-2006 Ericsson AB