blob: df7a424d6ec418b55b3f74fe955cc7fa3865f3fc [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001
Lev Walkinfa9bb6d2017-03-26 03:48:43 -070020.9.??:
Lev Walkin793982a2017-10-02 14:12:51 -07003 FEATURES:
Lev Walkinceae6ed2017-10-02 14:21:58 -07004 * Added support for basic Information Object Sets driven code generation.
Lev Walkinec6f7d52017-08-10 15:03:04 -07005 * Added OER support.
Lev Walkin08637ac2017-05-05 03:33:21 -07006 * Added LTE RRC example (Bi-Ruei, Chiu).
Lev Walkinec6f7d52017-08-10 15:03:04 -07007 * Added IEEE 1609.2 example.
8 * Added SAE J2735 example.
Lev Walkin793982a2017-10-02 14:12:51 -07009
10 NOTABLE:
Lev Walkin34df4e52017-11-17 21:07:24 -080011 * Converter example (included by default):
12 * converter-sample.c renamed into converter-example.c
13 * make converter-example.mk file for building that converter
14 * asn1c -no-gen-example to stop generating converter-example.{c,mk}
Lev Walkin227b9442017-11-11 18:08:33 -080015 * asn1c -no-gen-example option to disable converter-example generation.
Lev Walkinceae6ed2017-10-02 14:21:58 -070016 * Added random value generation (-R option to converter-example).
17 * Added LibFuzzer-based randomized tests for supported transfer syntaxes
18 (DER, OER, UPER, XER) into tests/tests-randomized. See the following
19 article to get the latest LibFuzzer-enabled clang on macOS:
20 https://medium.com/@levwalkin/compile-llvm-clang-libfuzzer-b61e82718430
21 then ensure the new clang is in the way:
22 CC=clang CXX=clang++ ./configure --enable-Werror --enable-test-fuzzer
Lev Walkin227b9442017-11-11 18:08:33 -080023 * OBJECT IDENTIFIER and RELATIVE-OID API simplified.
Lev Walkin56153042017-10-24 00:47:03 -070024 * uper_encode() API got new argument (breaks API compatibility).
Lev Walkind1c28aa2017-11-11 18:04:26 -080025 * asn1c -gen-XXX flags are deprecated. Use -no-gen-XXX to disable codecs.
Lev Walkin793982a2017-10-02 14:12:51 -070026
Lev Walkin6ccf7432019-01-21 23:46:19 -080027 FIXES IN COMPILER-GENERATED OUTPUT:
28 * Fix incomplete (failed) CHOICE XER decoding memory leak.
29 (Severity: medium; Security impact: medium)
30 * Fix REAL type overwrite conversion memory leak.
31 (Severity: low; Security impact: medium)
32 * Fix UPER string decoding constrained only by lower bound > 0
33 (Severity: low; Security impact: none)
34 * Fix UPER decoding of large [bit-]strings of size a multiple of 16K
35 (Severity: low; Security impact: none)
36 * Fix XER decoder crash on maliciously constructed ENUMERATED input.
37 (Severity: medium; Security impact: medium)
Lev Walkin6495ca52019-08-10 20:07:39 -070038 * Fix XER decoder of INTEGER, OBJECT IDENTIFIER, and RELATIVE-OID.
39 In some cases an INTEGER overflow during parsing is not detected
40 and incorrect value is returned to the decoder instead of an error.
41 Reported by Nika Pona <npona@digamma.ai>.
42 (Severity: low; Security impact: medium).
Lev Walkin6ccf7432019-01-21 23:46:19 -080043
44 FIXES IN TOOLING:
45 * CVE-2017-12966 verified not present.
46 * Fix `unber` buffer overrun. Reported by Eric Sesterhenn.
47 (Severity: low; Security impact: high)
Lev Walkinfa9bb6d2017-03-26 03:48:43 -070048
Lev Walkin792b22b2017-03-26 03:29:55 -0700490.9.28: 2017-03-26
Lev Walkinc644d992015-09-14 13:45:36 -070050 * PER decoding: avoid memory leak on error. By github.com/simo5
Lev Walkin108d4f92014-10-12 18:58:14 -070051 * Constness patch #46 by Wim L <wiml@omnigroup.com> (41bbf1c..78d604f).
Lev Walkina1e5b9d2015-09-14 12:50:42 -070052 Build issues:
53 * Fixed generated file permissions introduced by earlier pull (issue/32).
Lev Walkin108d4f92014-10-12 18:58:14 -070054 * Win32/MinGW patch #31 by Frank Morgner (frankmorgner).
Lev Walkina1e5b9d2015-09-14 12:50:42 -070055 * Autoreconf fix patch by Dave Cridland (github.com/dwd)
56 * Fix autoreconf-2.69 failure by github.com/brchiu
Lev Walkinc644d992015-09-14 13:45:36 -070057 * Fix C99 warnings. Fix by Adrien Destugues (github.com/pulkomandy).
Lev Walkin7c691052015-09-14 13:50:14 -070058 * C89 compliance fix by Jaroslav Imrich (github.com/jariq).
Lev Walkin7c1dc052016-03-14 03:08:15 -070059 * C standard compliance fixes by Markus Elfring (github.com/elfring).
Lev Walkineace46c2014-09-17 02:18:44 -070060
Lev Walkinb0ed8182014-09-17 01:55:37 -0700610.9.27: 2014-Sep-17
Lev Walkin65907f02014-09-14 17:19:21 -070062 * Build structure fixes for portability.
Lev Walkin58ecc7b2014-09-17 00:32:03 -070063 * Disable long debug of ASN.1 operations during `make check` stage.
64 * Introduce --enable-ASN_DEBUG configure flag to emit long debug output.
Lev Walkin65907f02014-09-14 17:19:21 -070065
Lev Walkine0d321a2014-09-11 01:28:57 -0700660.9.26: 2014-Sep-11
Lev Walkin4d852802014-10-12 17:46:13 -070067 * Updated asn1c-usage.pdf.
68 * Made -fskeletons-copy a default option; removed cmdline option.
69 * Made -fnative-types a default option; removed cmdline option.
70 Added -fwide-types for backwards compatibility.
Lev Walkin4062b012013-10-11 14:29:38 -070071 * Add -fline-refs to avoid being unfriendly to version control systems.
Lev Walkin6169b8d2013-12-07 11:02:44 -080072 * Default constraint checking fix.
73 Thanks to Bartosz Marcinkiewicz <bma@megawatt.com.pl>
Lev Walkinaa61a0f2014-01-13 23:08:47 -080074 * Get rid of non-standard pointer arithmetics on void* pointer.
Lev Walkin6c527842014-02-09 04:34:54 -080075 * PER-encoding of integers wider than 32 bits.
Lev Walkine3e8de02013-03-19 17:16:00 -070076
Lev Walkin4d852802014-10-12 17:46:13 -0700770.9.24: 2013-Mar-16
Lev Walkin83f2a1c2010-03-10 23:09:29 +000078
Lev Walkin4d852802014-10-12 17:46:13 -070079 * GeneralizedTime fix for working with time offsets which are not
80 representable in whole hours. (Severity: low; Security impact: low)
81 Thanks to IP Fabrics, Inc.
82 * Added -fincludes-quoted to asn1c to generate #includes in "double"
83 instead of <angle> quotes.
84 * PER encoding correctness fix. (Severity: high; Security impact: low)
85 Reported by Grzegorz Aksamit.
86 * ENUMERATED extension values check relaxed. Reported by Gabriel Burca.
87 * Fixed decimal decoding of REAL values in -fnative-types mode
88 (Severity: medium; Security impact: medium)
89 * Removed webcgi subproject (introduced in 2004) as useless.
Lev Walkin83f2a1c2010-03-10 23:09:29 +000090
Lev Walkin4d852802014-10-12 17:46:13 -0700910.9.22: 2008-Nov-19
Lev Walkin66adab42006-09-23 02:52:12 +000092
Lev Walkin4d852802014-10-12 17:46:13 -070093 * Added -pdu=all and -pdu=<type> switches to asn1c.
94 * Added PER support for most known-multiplier string types:
95 IA5String, VisibleString, PrintableString, BMPString, UniversalString;
96 useful types: GeneralizedTime, UTCTime, ObjectDescriptor;
97 as well as REAL and OBJECT IDENTIFIER.
98 TODO: SET type.
99 * Added PER support for extensions in SEQUENCE.
100 * Multiple enhancements by Daniele Varrazzo <daniele.varrazzo@gmail.com>
101 * Fixed explicit tagging of an in-lined constructed type.
102 (Severity: low; Security impact: none).
103 * Memory leak fixed in SET OF / SEQUENCE OF when wrong encoding
104 is encountered. (Severity: medium; Security impact: low)
105 * Fixed extensibility handling of second SEQUENCE production.
106 (Severity: low; Security impact: none)
107 * Added DEFAULT handling for known multiplier string.
108 * Added a sample OMA ULP decoder (./examples/sample.source.ULP).
109 * Added full-width 32-bit integer encoding support in PER.
110 * Fixed 1-byte OOB write issue with non-standard and Windows
111 memory allocators (Severity: low; Security impact: medium).
112 Reported by Sheng Yu.
Lev Walkin66adab42006-09-23 02:52:12 +0000113
Lev Walkin4d852802014-10-12 17:46:13 -07001140.9.21: 2006-Sep-17
Lev Walkin6b3ff542006-03-06 14:51:00 +0000115
Lev Walkin4d852802014-10-12 17:46:13 -0700116 * skeletons/standard-modules directory is now used for standard types.
117 * Fixed class field access problem (Test case 98)
118 (Severity: medium; Security impact: none)
119 * Refactored Information Object Classes parsing.
120 * Refactored Parameterization support.
121 * [typedef enum foo {}] foo_e; is now e_foo, see #1287989
122 * Refactored ValueSetTypeAssignment parsing.
123 * asn-decoder-template.c renamed into converter-sample.c
124 * MEGACO (Media Gateway Control Protocol) decoder sample added.
125 * First release of PER encoder (does not encode SETs yet).
126 * Added a sample LDAP decoder (./examples/sample.source.LDAP3).
127 * Added a sample 3GPP RRC decoder (./examples/sample.source.RRC).
128 * Added a sample MEGACO (H.248.1) decoder (sample.source.MEGACO).
Lev Walkin5e155492006-03-06 11:25:53 +0000129
Lev Walkin4d852802014-10-12 17:46:13 -07001300.9.20: 2006-Mar-06
Lev Walkind1bfea62005-11-08 03:06:16 +0000131
Lev Walkin4d852802014-10-12 17:46:13 -0700132 * SET OF CHOICE, SEQUENCE OF CHOICE and a certain named S/O types
133 are represented differently in XER. THIS IS AN INCOMPATIBLE CHANGE.
134 (Test case 70) (Severity: low; Security impact: low)
135 * asn1c: Removed -ftypes88 command line option.
136 * Started PER implementation. Somewhat experimental!
Lev Walkind1bfea62005-11-08 03:06:16 +0000137
Lev Walkin4d852802014-10-12 17:46:13 -07001380.9.19: 2005-Oct-06
Lev Walkinda9a3b82005-08-16 17:00:21 +0000139
Lev Walkin4d852802014-10-12 17:46:13 -0700140 * A proper solution to circular references. No kludge flags
141 should be necessary anymore to produce reference-free code:
142 recursive dependencies are resolved automatically.
143 * Test cases 73 & 92 keep track of various circular references.
144 * Introduced compiler directives to allow finer control over the
145 generated code ("--<ASN1C...>--" in comments), (Test case 93).
146 * New feature for unber(1): -s <skip> bytes.
147 * Mandatory elements map for SET was not getting generated properly.
148 (Test case 94) (Severity: high; Security impact: low)
149 * asn1c: new command line option: -fskeletons-copy.
Lev Walkinda9a3b82005-08-16 17:00:21 +0000150
Lev Walkin4d852802014-10-12 17:46:13 -07001510.9.18: 2005-Aug-14
Lev Walkin58db6952005-08-12 05:13:35 +0000152
Lev Walkin4d852802014-10-12 17:46:13 -0700153 * The obsolete X.208 syntax is handled gracefully now (compound types'
154 member names are invented on the fly). (Test case 87).
155 * Generating enumeration tables for INTEGER types (Test case 88).
156 * Generating enumeration tables for BIT STRING types (Test case 89).
157 * Conditional INTEGER/ENUMERATED representation: long vs. INTEGER_t
158 type is chosen based on PER visible constraints (Test cases 90, 91).
159 * Union structures for CHOICE type are not anonymous anymore.
160 * Made unber(1) program more verbose: effective structure length is
161 now displayed as L="<n>" at the closing tag. (Test check-xxber.sh).
162 * Fixed unber(1)'s -1 switch for indefinite encoding length.
163 * New command line option for unber(1): -m to enable minimalistic mode.
Lev Walkin58db6952005-08-12 05:13:35 +0000164
Lev Walkin4d852802014-10-12 17:46:13 -07001650.9.17: 2005-Aug-07
Lev Walkine54e9422005-07-21 01:18:19 +0000166
Lev Walkin4d852802014-10-12 17:46:13 -0700167 * Tagging mode is implicitly IMPLICIT if AUTOMATIC TAGS is used, #30.6.
168 (Test cases 55, 86).
169 * Started to use extern "C" {} in skeleton headers.
170 * Introduced -finline-choice command line option to fix
171 yet another class of circular references.
Lev Walkine54e9422005-07-21 01:18:19 +0000172
Lev Walkin4d852802014-10-12 17:46:13 -07001730.9.16: 2005-July-04
Lev Walkin2535a692005-07-02 21:42:40 +0000174
Lev Walkin4d852802014-10-12 17:46:13 -0700175 * GeneralizedTime API now supports fractions of seconds.
176 Thanks to Bent Nicolaisen <BN@JAI.com> for support.
177 * ASN.1 parser has been tweaked to allow parsing something like
178 "SEQUENCE----comment----", which is ambiguous for many reasons.
179 * XER decoder better handles not-yet-defined future extensions.
Lev Walkin2535a692005-07-02 21:42:40 +0000180
Lev Walkina127c3a2005-07-02 08:19:26 +00001810.9.15: 2005-July-02
Lev Walkin88693e82005-05-17 21:46:18 +0000182
Lev Walkin4d852802014-10-12 17:46:13 -0700183 * Compiler now checks 64-bit overflows in constraints range handling
184 code. No effect on the code produced by the compiler.
185 * Compiler support for tagged and marked parametrized members.
186 * Empty tags to element map avoided.
187 * Compiled code GCC 4.x compatibility.
Lev Walkin88693e82005-05-17 21:46:18 +0000188
Lev Walkin4d852802014-10-12 17:46:13 -07001890.9.14: 2005-Apr-29
Lev Walkin8b2f0c92005-04-29 18:55:12 +0000190
Lev Walkin4d852802014-10-12 17:46:13 -0700191 * Fixed check-70.-fnative-integers.c test (it was failing
192 when no test directory was found).
Lev Walkin8b2f0c92005-04-29 18:55:12 +0000193
Lev Walkin4d852802014-10-12 17:46:13 -07001940.9.13: 2005-Apr-24
Lev Walkincbf5a7e2005-03-10 18:53:33 +0000195
Lev Walkin4d852802014-10-12 17:46:13 -0700196 * Added extra const qualifiers into the support code.
197 * More RFC variations supported in crfc2asn1.pl.
198 * Refined string values compatibility. (Test cases 77, 78).
199 * Support for ContainedSubtype constraints. (Test case 16).
200 * Parsing support for CONSTRAINED BY. (Test case 79).
201 * Support for CharsDefn (Quadruple and Tuple, most used in
202 ASN1-CHARACTER-MODULE) (Test case 80).
203 * Pretty-printing support for WITH COMPONENT[S]. (Test case 82).
204 * Streamed OCTET STRING decoding of large values: fixed allocation
205 problem introduced in 0.9.9. (Severity: high; Security impact: medium)
206 Reported by Yann Grossel <olrick@users.sourceforge.net>.
207 * Fixed BASIC-XER encoding of REAL numbers.
Lev Walkincbf5a7e2005-03-10 18:53:33 +0000208
Lev Walkin4d852802014-10-12 17:46:13 -07002090.9.12: 2005-Mar-10
Lev Walkine8318b82005-03-06 09:29:03 +0000210
Lev Walkin4d852802014-10-12 17:46:13 -0700211 * Fixed a name clash in produced constraint checking code.
212 * #includes are now in single quotes (to solve a name
213 clash with system's <time.h> on a Win32 system).
214 * Small refinement of XML DTD generation (`asn1c -X`).
215 * Relaxed XER processing rules to skip extra whitespace
216 in some more places. It also skips XML comments (although
217 XML comments in XER are prohibited by X.693, #8.2.1).
218 (Test case 70) (Severity: medium; Security impact: none)
219 Reported by <Dominique.Nerriec@alcatel.fr>.
220 * Constraints on primitive types being defined are now supported.
221 (Test case 74) (Severity: low; Security impact: none)
222 * XMLValueList generation fixed for CHOICE type.
223 (Severity: medium; Security impact: none)
224 * Added the GSM TAP3 decoder into ./examples/sample.source.TAP3
Lev Walkine8318b82005-03-06 09:29:03 +0000225
Lev Walkin4d852802014-10-12 17:46:13 -07002260.9.11: 2005-Mar-04
Lev Walkin87da8262005-03-03 21:29:10 +0000227
Lev Walkin4d852802014-10-12 17:46:13 -0700228 * Released -fcompound-names to fix the name clashes in the code
229 produced by the asn1c.
230 * Released -fno-include-deps to avoid #including non-critical
231 external dependencies.
232 * Compiler is taught to produce compilable code for yet another class
233 of circular ASN.1 type references.
234 * X.693:8.3.4 prohibits anything but SignedNumber; fixed XER codec.
235 * Fixed ENUMERATED identifier to value conversion in XER.
236 Reported by <jacque.celaire@caramail.com>.
237 * If the compiled file contents are the same as in already existing
238 file (left from previous compilation), the old file is retained.
239 This prevents thrashing `make` dependencies if amount of changes in
240 the original ASN.1 module(s) is small.
Lev Walkin87da8262005-03-03 21:29:10 +0000241
Lev Walkin4d852802014-10-12 17:46:13 -07002420.9.10: 2005-Feb-25
Lev Walkin043af0d2005-02-24 21:07:35 +0000243
Lev Walkin4d852802014-10-12 17:46:13 -0700244 * Completed the XER XMLValueList encoding and decoding.
245 * Native integer type is now using "long".
246 * Fixed #1150856. Reported by <vvvy@users.sourceforge.net>.
247 * Some WIN32 portability fixes.
Lev Walkin043af0d2005-02-24 21:07:35 +0000248
Lev Walkin4d852802014-10-12 17:46:13 -07002490.9.9: 2005-Feb-22
Lev Walkind2388382005-01-17 15:27:47 +0000250
Lev Walkin4d852802014-10-12 17:46:13 -0700251 * First release of XER (XML) decoding implementation (somewhat
252 experimental).
253 * ANY allocation routine fixed.
254 Reported by <mikko.ahonen@elma.net>.
255 * Fixed tag parsing (tags like "[ 0 ]" were not supported).
256 * Compiler now checks for duplicate ASN.1 types across modules.
Lev Walkind2388382005-01-17 15:27:47 +0000257
Lev Walkin4d852802014-10-12 17:46:13 -07002580.9.8: 2005-Jan-17
Lev Walkin144db9b2004-10-12 23:26:53 +0000259
Lev Walkin4d852802014-10-12 17:46:13 -0700260 * [NEW PLATFORM] Compiled and tested on Linux @ alpha64 (LP64).
261 Some code needed to be fixed regarding int-long conversions
262 (mostly inside the test suite), and floating point handling
263 code needed to be restructured to handle signalling NAN and
264 other floating point exceptions quietly. Smooth transition!
265 * [NEW PLATFORM] Compiled and tested on Sun Solaris 9 @ sparc.
266 Improved includes/defines of/for system headers.
267 * -X command line option added to asn1c to generate XML DTD.
268 * Empty SEQUENCE and SET clauses are now allowed.
269 * Removed confusion between &xNN; and &#xNN; in enber and unber.
270 * Removed order dependency in DEFAULT references to ENUMERATED
271 identifiers (./tests/68-*-OK.asn1).
272 * ber_dec_rval_t renamed into asn_dec_rval_t: more generality.
273 * Extensions in CHOICE types are properly marked as non-pointers
274 (Test case 59) (Severity: medium; Security impact: medium)
275 Reported by <roman.pfender@sdm.de>.
276 * Tagged CHOICE type is now supported again.
277 (Test case 59) (Severity: low; Security impact: low)
278 Reported by <orlinkata@dir.bg>.
279 * Implemented der_encode_to_buffer() procedure.
Lev Walkin144db9b2004-10-12 23:26:53 +0000280
Lev Walkin4d852802014-10-12 17:46:13 -07002810.9.7.1: 2004-Oct-12
Lev Walkin144db9b2004-10-12 23:26:53 +0000282
Lev Walkin4d852802014-10-12 17:46:13 -0700283 * Fixed automatic tagging for extensions of compound types.
284 * Fixed ParametrizedReference parsing: {} are now recognized.
Lev Walkin144db9b2004-10-12 23:26:53 +0000285
Lev Walkin4d852802014-10-12 17:46:13 -07002860.9.7: 2004-Oct-11
Lev Walkin0ca7aec2004-10-02 00:12:11 +0000287
Lev Walkin4d852802014-10-12 17:46:13 -0700288 * Finished CXER implementation by adding SET and SET OF canonical
289 ordering support.
290 * Fixed unber(1) limits controlling logic.
291 * Removed C99'izm from the x509dump, now understood by older compilers.
292 * Enhanced UTF8String constraint validation, now it checks
293 for the minimal encoding length; API of UTF8String_length() changed.
294 * Fixed SEQUENCE dealing with premature termination of the
295 optionals-laden indefinite length structure. The code was previously
296 refusing to parse such structures.
297 * Fixed explicitly tagged ANY type encoding and decoding
298 (Severity: medium; Security impact: low).
299 * Fixed CHOICE code spin when indefinite length structures appear
300 in the extensions (Severity: medium; Security impact: medium).
301 Reported by <siden@ul-gsm.ru>.
302 * BIT STRING now stores the number of unused octets in a separate field.
Lev Walkin0ca7aec2004-10-02 00:12:11 +0000303
Lev Walkin4d852802014-10-12 17:46:13 -07003040.9.6: 2004-Sep-29
Lev Walkin33cded12004-09-19 19:40:52 +0000305
Lev Walkin4d852802014-10-12 17:46:13 -0700306 * Added several security firewalls: decoder's stack usage control
307 and the stricter checking of the TLV length.
308 * Implemented BASIC-XER encoding support (X.693).
309 * Implemented unber(1) and enber(1) for BER<->XML translation.
310 * Implemented CGI for online ASN.1 compilation (asn1c/webcgi).
311 * Implemented the sample X.509 decoder (./examples/sample.source.PKIX1).
312 * NamedType is now supported for SET OF/SEQUENCE OF type.
313 * Added -fno-constraints option to asn1c, which disabled generation of
314 ASN.1 subtype constraints checking code.
315 * Added ASN1C_ENVIRONMENT_VERSION and get_asn1c_environment_version().
316 * Fixed ANY type decoding (Severity: high; Security impact: low).
317 * Fixed BER decoder restartability problem with certain primitive
318 types (BOOLEAN, INTEGER, and REAL). The problem occured when the
319 encoding of such type is split between several bytes.
320 (Severity: high; Security impact: low)
321 * Support for cross-referencing type definitions (updated ./tests/43-*).
322 * Fixed pretty-printing of the REAL type. Added lots of test cases.
323 * Renamed asn1_* into asn_* in function and type names.
324 * Updated documentation.
Lev Walkin33cded12004-09-19 19:40:52 +0000325
Lev Walkin4d852802014-10-12 17:46:13 -07003260.9.5: 2004-Sep-17
Lev Walkinb4adfd32004-09-13 08:32:15 +0000327
Lev Walkin4d852802014-10-12 17:46:13 -0700328 * Fixed CER (common BER) decoder code. See check-25.c/VisibleString
329 case for details. X.690 specifies that inner structures in BER
330 encoding must be tagged by stripping off the outer tag for each
331 subsequent containment level. See also X.690: 8.21.5.4 and
332 the "Spouse" case in A.3.
333 (Severity: medium; Security impact: low)
334 * Added converters between any generic type and the ANY type.
335 * Parser fixed: Information Object Class fields may be taged.
336 * Parser fixed: tagged types inside SEQUENCE OF/SET OF support.
337 * Improved DEFAULT Value parsing and pretty-printing.
338 * Condition on distinct tags checker was incorrectly dealing with
339 tagged CHOICE types. Fixed. Modified tests/37-indirect-choice-OK.asn1
340 * Improved type name generation code ("struct foo" vs "foo_t").
341 * Fixed constraint checking code incorrectly dealing with imported
342 types with constraint values defined in other modules.
343 * Real REAL support! (Haven't tested denormals support yet!)
344 See skeletons/tests/check-REAL.c
Lev Walkinb4adfd32004-09-13 08:32:15 +0000345
Lev Walkin4d852802014-10-12 17:46:13 -07003460.9.4: 2004-Sep-10
Lev Walkin4a727052004-09-10 09:38:17 +0000347
Lev Walkin4d852802014-10-12 17:46:13 -0700348 * More support for recursive type definitions.
349 * Explicit support for ANY type decoding.
350 * Refactored tags processing code.
351 * Fixed constraints checking code: non-exploitable buffer overflow.
352 (Severity: medium; Security impact: low)
Lev Walkin4a727052004-09-10 09:38:17 +0000353
Lev Walkin4d852802014-10-12 17:46:13 -07003540.9.3: 2004-Sep-07
Lev Walkin8059bc42004-08-26 06:19:23 +0000355
Lev Walkin4d852802014-10-12 17:46:13 -0700356 * Extended constraints support in parametrized types.
357 * Better support for parametrization and constraints handling.
358 * Better handling of recursive type definitions.
359 * Added support for ANY type.
Lev Walkin8059bc42004-08-26 06:19:23 +0000360
Lev Walkin4d852802014-10-12 17:46:13 -07003610.9.2: 2004-Aug-24
Lev Walkin4ce78ca2004-08-25 01:34:11 +0000362
Lev Walkin4d852802014-10-12 17:46:13 -0700363 * More flexible subtype constraints handling, with relaxed
364 PER visibility rules for actual constraints checking code generator.
365 * Indirect references in constraints resolver code fixed.
366 * Avoided compilation warning on gcc 3.3.3 systems.
367 * Better ValueSet printing.
Lev Walkin4ce78ca2004-08-25 01:34:11 +0000368
Lev Walkin4d852802014-10-12 17:46:13 -07003690.9.1: 2004-Aug-23
Lev Walkinfa66e082004-08-24 05:25:57 +0000370
Lev Walkin4d852802014-10-12 17:46:13 -0700371 * Documentation updated: doc/asn1c-usage.pdf
372 * Fixed OBJECT IDENTIFIER human-readable printing.
373 Reported by <siden@ul-gsm.ru>.
Lev Walkinfa66e082004-08-24 05:25:57 +0000374
Lev Walkin4d852802014-10-12 17:46:13 -07003750.9: 2004-Aug-23
Lev Walkin3d0b5a32004-08-18 05:43:55 +0000376
Lev Walkin4d852802014-10-12 17:46:13 -0700377 * Reworked subtype constraints handling, aiming at PER-applicability.
378 * BOOLEAN and NULL are now implemented in terms of native int type.
379 * Compiler now links in only necessary skeleton files.
380 * -t option added to asn1c to ease manual BER/CER/DER decoding.
381 * Added support COMPONENTS OF construct.
382 * Numerous parser fixes and enhancements.
383 * Better constraint failure reporting.
Lev Walkin3d0b5a32004-08-18 05:43:55 +0000384
Lev Walkin4d852802014-10-12 17:46:13 -07003850.8.19: 2004-Aug-18
Lev Walkin1ef79852004-08-18 09:05:12 +0000386
Lev Walkin4d852802014-10-12 17:46:13 -0700387 * Fixed BER encoder (problem encoding large tag values)
388 (Severity: medium; Security impact: low)
Lev Walkin1ef79852004-08-18 09:05:12 +0000389
Lev Walkin4d852802014-10-12 17:46:13 -07003900.8.18: 2004-Aug-12
Lev Walkinb0892fe2004-08-13 12:39:17 +0000391
Lev Walkin4d852802014-10-12 17:46:13 -0700392 * Parser: fixed multiple IMPORTS problem (incorrect assertion).
393 * Parser: constraints extensibility parsing fix.
Lev Walkinb0892fe2004-08-13 12:39:17 +0000394
Lev Walkin4d852802014-10-12 17:46:13 -07003950.8.17: 2004-Aug-11
Lev Walkind8b940c2004-08-11 05:35:51 +0000396
Lev Walkin4d852802014-10-12 17:46:13 -0700397 * Improved compiler output: duplicate #includes eliminated.
398 * Win32 portability fixes.
399 * More compatibility with C++ or non-GCC compilers.
Lev Walkind8b940c2004-08-11 05:35:51 +0000400
Lev Walkin4d852802014-10-12 17:46:13 -07004010.8.16: 2004-Jul-22
Lev Walkinab42ef92004-07-22 12:19:42 +0000402
Lev Walkin4d852802014-10-12 17:46:13 -0700403 * Fixed application-level problem in SET OF/SEQUENCE OF array cleanup.
404 (Severity: medium; Security impact: low)
405 * Improved asn_GT2time() and added asn_time2{GT,UT}() functions.
406 * BIT STRING pretty-printing.
Lev Walkinab42ef92004-07-22 12:19:42 +0000407
Lev Walkin4d852802014-10-12 17:46:13 -07004080.8.15: 2004-Jul-20
Lev Walkin29a62262004-07-15 10:52:58 +0000409
Lev Walkin4d852802014-10-12 17:46:13 -0700410 * Fixed parser: memory leak in free_struct code for SET OF/SEQUENCE OF.
411 (Severity: high; Security impact: medium)
412 * Fixed parser: invalid memory reference in code constructing tags.
413 (Test case 48) (Severity: high; Security impact: medium)
414 When encoding data for certain ASN.1 specifications containing
415 explicit tags, the tag is always written incorrectly due to
416 incorrect memory reference. The encoding will almost always produce
417 unparseable data and might well reference unmapped region so program
418 would produce segmentation violation. Fortunately, memory is
419 read, not written, so remote exploits cannot execute arbitrary
420 code and triggering unmapped memory reference is highly unlikely
421 even it attacker knows the code (basically, the compiler should place
422 asn1_DEF_... right before the end of the mapped memory region, which
423 is extremely rare).
424 * Improved INTEGER type printing.
Lev Walkin29a62262004-07-15 10:52:58 +0000425
Lev Walkin4d852802014-10-12 17:46:13 -07004260.8.14: 2004-Jun-30
Lev Walkin35631482004-07-01 00:52:50 +0000427
Lev Walkin4d852802014-10-12 17:46:13 -0700428 * Fixed compiler: extensibility of CHOICE and SET type has not been
429 taken into account during table construction.
430 (Test case 47) (Severity: high; Security impact: low)
Lev Walkin35631482004-07-01 00:52:50 +0000431
Lev Walkin4d852802014-10-12 17:46:13 -07004320.8.13: 2004-Jun-29
Lev Walkind0d63f02004-06-28 21:22:20 +0000433
Lev Walkin4d852802014-10-12 17:46:13 -0700434 * Fixed compiler: the skip values for IMPLICIT tagging were broken
435 in some complex cases where one type is defined using another.
436 (Test case 46) (Severity: medium; Security impact: low).
437 * Added -fknown-extern-type command line parameter to asn1c.
438 * Removed -N command line flag and underlying functionality
439 to honor KISS principle.
Lev Walkind0d63f02004-06-28 21:22:20 +0000440
Lev Walkin4d852802014-10-12 17:46:13 -07004410.8.12: 2004-Jun-17
Lev Walkin715f45c2004-06-14 13:53:32 +0000442
Lev Walkin4d852802014-10-12 17:46:13 -0700443 * RELATIVE-OID and OBJECT IDENTIFIER encoders/decoders are not bound
444 anymore to an integer type of specific size (unsigned long). The
445 size of an integer must be provided explicitly.
446 See {OBJECT_IDENTIFIER|RELATIVE_OID}_{get|set}_arcs().
447 * SEQUENCE BER decoder fixed again for complex CHOICE case
448 (Test case 44) (Severity: medium; Security impact: low).
Lev Walkin715f45c2004-06-14 13:53:32 +0000449
Lev Walkin4d852802014-10-12 17:46:13 -07004500.8.11: 2004-Jun-05
Lev Walkin67c2aec2004-06-05 08:47:18 +0000451
Lev Walkin4d852802014-10-12 17:46:13 -0700452 * Enforced stricter conformance with C standards.
453 * SEQUENCE BER decoder is now equipped with the sorted map
454 in case of complex CHOICE descendants. Test case 44 created.
Lev Walkin67c2aec2004-06-05 08:47:18 +0000455
Lev Walkin4d852802014-10-12 17:46:13 -07004560.8.10: 2004-Jun-02
Lev Walkinf15320b2004-06-03 03:38:44 +0000457
Lev Walkin4d852802014-10-12 17:46:13 -0700458 * Added const qualifier where necessary.
459 * Changed position of outmost_tag fetcher within asn1_TYPE_descriptor_t
460 structure.
Lev Walkinf15320b2004-06-03 03:38:44 +0000461
Lev Walkin4d852802014-10-12 17:46:13 -07004620.8.9: 2004-May-26
Lev Walkinf15320b2004-06-03 03:38:44 +0000463
Lev Walkin4d852802014-10-12 17:46:13 -0700464 * Added *_{get|set}_arcs_*() functions for OBJECT IDENTIFIER
465 and RELATIVE-OID, together with test cases.
Lev Walkinf15320b2004-06-03 03:38:44 +0000466
Lev Walkin4d852802014-10-12 17:46:13 -07004670.8.8: 2004-May-09
Lev Walkinf15320b2004-06-03 03:38:44 +0000468
Lev Walkin4d852802014-10-12 17:46:13 -0700469 * Introduced subtype constraints support (incomplete!).
470 * Fixed compiler. If the last member of the SEQUENCE is OPTIONAL
471 and absent in the encoding, and the type is extensible (...) or
472 EXTENSIBILITY IMPLIED flag is set, then the structure could not
473 be correctly decoded. (Severity: high; Security impact: low).
474 * Compiler: fixed recursive ASN.1 types inclusion (Severity: low,
475 Security impact: none).
476 * Parser: IMPORTS/FROM fixes, now allowing multiple sections.
477 * NEW PLATFORM: Compiled and tested on MacOS X (@ PowerPC).
478 No major portability issues experienced.
Lev Walkinf15320b2004-06-03 03:38:44 +0000479
Lev Walkin4d852802014-10-12 17:46:13 -07004800.8.7: 2004-Apr-11 T-version-0-8-7
Lev Walkinf15320b2004-06-03 03:38:44 +0000481
Lev Walkin4d852802014-10-12 17:46:13 -0700482 * Fixed SEQUENCE BER decoder: if the last member of the SEQUENCE is
483 OPTIONAL and absent in the encoding, RC_FAIL was returned instead
484 of RC_OK (Severity: high; Security impact: low).
485 * Added test case to check the above problem.
486 * Added test case to check -fnative-integers mode.
Lev Walkinf15320b2004-06-03 03:38:44 +0000487
Lev Walkin4d852802014-10-12 17:46:13 -07004880.8.6: 2004-Apr-03 T-version-0-8-6
Lev Walkinf15320b2004-06-03 03:38:44 +0000489
Lev Walkin4d852802014-10-12 17:46:13 -0700490 * Fixed compiler output for embedded ASN.1 structures.
Lev Walkinf15320b2004-06-03 03:38:44 +0000491
Lev Walkin4d852802014-10-12 17:46:13 -07004920.8.5: 2004-Mar-28 T-version-0-8-5
Lev Walkinf15320b2004-06-03 03:38:44 +0000493
Lev Walkin4d852802014-10-12 17:46:13 -0700494 * Fixed ber_tlv_length() computation problem (Severity: high,
495 Security impact: none).
496 Reported by <vss@high.net.ru>
Lev Walkinf15320b2004-06-03 03:38:44 +0000497
Lev Walkin4d852802014-10-12 17:46:13 -07004980.8.4: 2004-Mar-22
Lev Walkinf15320b2004-06-03 03:38:44 +0000499
Lev Walkin4d852802014-10-12 17:46:13 -0700500 * Removed RC_ITAG enumeration element from BER decoder.
501 This return code did not have much practical value.
Lev Walkinf15320b2004-06-03 03:38:44 +0000502
Lev Walkin4d852802014-10-12 17:46:13 -07005030.8.3: 2004-Mar-14 T-version-0-8-3
Lev Walkinf15320b2004-06-03 03:38:44 +0000504
Lev Walkin4d852802014-10-12 17:46:13 -0700505 * Fixed SET::BER decoder: restart after reaching a buffer boundary
506 weas broken (Severity: high; Security impact: low).
507 * Fixed OCTET STRING::BER decoder: restart after reaching a buffer
508 boundary was broken (Severity: high; Security impact: low).
509 Reported by <vss@high.net.ru>
510 * Added test cases to check decoders restartability.
511 * Slightly more general INTEGER2long decoder.
512 * Allowed nested /* C-type */ comments, as per X.680:2002.
Lev Walkinf15320b2004-06-03 03:38:44 +0000513
Lev Walkin4d852802014-10-12 17:46:13 -07005140.8.2: 2004-Mar-01 T-version-0-8-2
Lev Walkinf15320b2004-06-03 03:38:44 +0000515
Lev Walkin4d852802014-10-12 17:46:13 -0700516 * Fixed SEQUENCE BER decoder: an OPTIONAL element was required, where
517 should not have been (Severity: major; Security impact: low).
518 * Fixed print_struct pointer inheritance.
519 * Added -fno-c99 and -funnamed-unions
Lev Walkinf15320b2004-06-03 03:38:44 +0000520
Lev Walkin4d852802014-10-12 17:46:13 -07005210.8.1: 2004-Feb-22
Lev Walkinf15320b2004-06-03 03:38:44 +0000522
Lev Walkin4d852802014-10-12 17:46:13 -0700523 * -R switch to asn1c: Omit support code, compile only the tables.
524 * Introduced NativeInteger pseudotype.
525 * Corrected the informal print_struct()'s output format.
Lev Walkinf15320b2004-06-03 03:38:44 +0000526
Lev Walkin4d852802014-10-12 17:46:13 -07005270.8.0: 2004-Feb-03 T-version-0-8-0
Lev Walkinf15320b2004-06-03 03:38:44 +0000528
Lev Walkin4d852802014-10-12 17:46:13 -0700529 * Some documentation is created (a .pdf and a short manual page).
530 * Last touches to the code.
Lev Walkinf15320b2004-06-03 03:38:44 +0000531
Lev Walkin4d852802014-10-12 17:46:13 -07005320.7.9: 2004-Feb-01 T-version-0-7-9
Lev Walkinf15320b2004-06-03 03:38:44 +0000533
Lev Walkin4d852802014-10-12 17:46:13 -0700534 * Human readable printing support.
535 * Support for implicit (standard) constraints.
Lev Walkinf15320b2004-06-03 03:38:44 +0000536
Lev Walkin4d852802014-10-12 17:46:13 -07005370.7.8: 2004-Jan-31
Lev Walkinf15320b2004-06-03 03:38:44 +0000538
Lev Walkin4d852802014-10-12 17:46:13 -0700539 * SET now rejects duplicate fields in the data stream.
Lev Walkinf15320b2004-06-03 03:38:44 +0000540
Lev Walkin4d852802014-10-12 17:46:13 -07005410.7.7: 2004-Jan-25
Lev Walkinf15320b2004-06-03 03:38:44 +0000542
Lev Walkin4d852802014-10-12 17:46:13 -0700543 * Added types: GeneralizedTime and UTCTime.
Lev Walkinf15320b2004-06-03 03:38:44 +0000544
Lev Walkin4d852802014-10-12 17:46:13 -07005450.7.6: 2004-Jan-24 T-version-0-7-6
Lev Walkinf15320b2004-06-03 03:38:44 +0000546
Lev Walkin4d852802014-10-12 17:46:13 -0700547 * DER encoding of a SET OF now involves dynamic sorting.
Lev Walkinf15320b2004-06-03 03:38:44 +0000548
Lev Walkin4d852802014-10-12 17:46:13 -07005490.7.5: 2004-Jan-24 T-version-0-7-5
Lev Walkinf15320b2004-06-03 03:38:44 +0000550
Lev Walkin4d852802014-10-12 17:46:13 -0700551 * DER encoding of a SET with untagged CHOICE
552 now involves dynamic sorting.
Lev Walkinf15320b2004-06-03 03:38:44 +0000553
Lev Walkin4d852802014-10-12 17:46:13 -07005540.7.0: 2004-Jan-19 T-version-0-7-0
Lev Walkinf15320b2004-06-03 03:38:44 +0000555
Lev Walkin4d852802014-10-12 17:46:13 -0700556 * A bunch of DER encoders is implemented.
Lev Walkinf15320b2004-06-03 03:38:44 +0000557
Lev Walkin4d852802014-10-12 17:46:13 -07005580.6.6: 2004-Jan-11
Lev Walkinf15320b2004-06-03 03:38:44 +0000559
Lev Walkin4d852802014-10-12 17:46:13 -0700560 * Implemented CHOICE decoder.
561 * Implemented destructors support.
Lev Walkinf15320b2004-06-03 03:38:44 +0000562
Lev Walkin4d852802014-10-12 17:46:13 -07005630.6.5: 2004-Jan-03
Lev Walkinf15320b2004-06-03 03:38:44 +0000564
Lev Walkin4d852802014-10-12 17:46:13 -0700565 * Implemented SET decoder.
566 * Implemented SET OF and SEQUENCE OF decoders.
Lev Walkinf15320b2004-06-03 03:38:44 +0000567
Lev Walkin4d852802014-10-12 17:46:13 -07005680.6.4: 2003-Dec-31
Lev Walkinf15320b2004-06-03 03:38:44 +0000569
Lev Walkin4d852802014-10-12 17:46:13 -0700570 * Implemented BOOLEAN, NULL, ENUMERATED decoders.
571 * Implemented OCTET STRING decoder.
572 * Implemented BIT STRING decoder.
Lev Walkinf15320b2004-06-03 03:38:44 +0000573
Lev Walkin4d852802014-10-12 17:46:13 -07005740.6: 2003-Dec-30
Lev Walkinf15320b2004-06-03 03:38:44 +0000575
Lev Walkin4d852802014-10-12 17:46:13 -0700576 * First decoding of a BER-encoded structure!
Lev Walkinf15320b2004-06-03 03:38:44 +0000577
Lev Walkin4d852802014-10-12 17:46:13 -07005780.5: 2003-Dec-28
Lev Walkinf15320b2004-06-03 03:38:44 +0000579
Lev Walkin4d852802014-10-12 17:46:13 -0700580 * Framework and most of the compiler backbone coding done.
Lev Walkinf15320b2004-06-03 03:38:44 +0000581
Lev Walkin4d852802014-10-12 17:46:13 -07005820.1: 2003-Nov-28
Lev Walkinf15320b2004-06-03 03:38:44 +0000583
Lev Walkin4d852802014-10-12 17:46:13 -0700584 * Programming started.
Lev Walkin6d67d912004-10-05 06:39:35 +0000585
586=== Bug importance disclosure terms ===
587
588SEVERITY.
589 This term applies to the frequence the particular construct is used
590 in the real world. The higher the frequency, the more chances of triggering
591 this bug.
Lev Walkin4d852802014-10-12 17:46:13 -0700592 low: The ASN.1 specifications which could trigger
593 this kind of bug are not widespread.
594 medium: The particular ASN.1 construct is used quite often,
595 so the chance of triggering an error is considerable.
596 high: This fix is considered urgent, or the particular ASN.1
597 construct triggering this bug is in wide use.
Lev Walkin6d67d912004-10-05 06:39:35 +0000598
599SECURITY IMPACT.
600 This term applies to the amount of potential damage a bug exploitation
601 could cause.
Lev Walkin4d852802014-10-12 17:46:13 -0700602 none: No malicious exploitation is possible.
603 low: The local exploitation is unlikely; the remote exploitation
604 is not possible.
605 medium: The remote exploitation is possible when a particular ASN.1
606 construct is being used. If possible, only hard failure, spin
607 or memory leak are the possible outcome: no shellcode
608 injection could possibly be carried by the attack.
609 high: The remote shellcode injection is possible, or the bug is
610 otherwise remotely exploitable for most specifications.
Lev Walkin6d67d912004-10-05 06:39:35 +0000611