blob: b5ac2eba5bc85bda1dcc27f80d77dd56c6cefdcd [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)
38
39 FIXES IN TOOLING:
40 * CVE-2017-12966 verified not present.
41 * Fix `unber` buffer overrun. Reported by Eric Sesterhenn.
42 (Severity: low; Security impact: high)
Lev Walkinfa9bb6d2017-03-26 03:48:43 -070043
Lev Walkin792b22b2017-03-26 03:29:55 -0700440.9.28: 2017-03-26
Lev Walkinc644d992015-09-14 13:45:36 -070045 * PER decoding: avoid memory leak on error. By github.com/simo5
Lev Walkin108d4f92014-10-12 18:58:14 -070046 * Constness patch #46 by Wim L <wiml@omnigroup.com> (41bbf1c..78d604f).
Lev Walkina1e5b9d2015-09-14 12:50:42 -070047 Build issues:
48 * Fixed generated file permissions introduced by earlier pull (issue/32).
Lev Walkin108d4f92014-10-12 18:58:14 -070049 * Win32/MinGW patch #31 by Frank Morgner (frankmorgner).
Lev Walkina1e5b9d2015-09-14 12:50:42 -070050 * Autoreconf fix patch by Dave Cridland (github.com/dwd)
51 * Fix autoreconf-2.69 failure by github.com/brchiu
Lev Walkinc644d992015-09-14 13:45:36 -070052 * Fix C99 warnings. Fix by Adrien Destugues (github.com/pulkomandy).
Lev Walkin7c691052015-09-14 13:50:14 -070053 * C89 compliance fix by Jaroslav Imrich (github.com/jariq).
Lev Walkin7c1dc052016-03-14 03:08:15 -070054 * C standard compliance fixes by Markus Elfring (github.com/elfring).
Lev Walkineace46c2014-09-17 02:18:44 -070055
Lev Walkinb0ed8182014-09-17 01:55:37 -0700560.9.27: 2014-Sep-17
Lev Walkin65907f02014-09-14 17:19:21 -070057 * Build structure fixes for portability.
Lev Walkin58ecc7b2014-09-17 00:32:03 -070058 * Disable long debug of ASN.1 operations during `make check` stage.
59 * Introduce --enable-ASN_DEBUG configure flag to emit long debug output.
Lev Walkin65907f02014-09-14 17:19:21 -070060
Lev Walkine0d321a2014-09-11 01:28:57 -0700610.9.26: 2014-Sep-11
Lev Walkin4d852802014-10-12 17:46:13 -070062 * Updated asn1c-usage.pdf.
63 * Made -fskeletons-copy a default option; removed cmdline option.
64 * Made -fnative-types a default option; removed cmdline option.
65 Added -fwide-types for backwards compatibility.
Lev Walkin4062b012013-10-11 14:29:38 -070066 * Add -fline-refs to avoid being unfriendly to version control systems.
Lev Walkin6169b8d2013-12-07 11:02:44 -080067 * Default constraint checking fix.
68 Thanks to Bartosz Marcinkiewicz <bma@megawatt.com.pl>
Lev Walkinaa61a0f2014-01-13 23:08:47 -080069 * Get rid of non-standard pointer arithmetics on void* pointer.
Lev Walkin6c527842014-02-09 04:34:54 -080070 * PER-encoding of integers wider than 32 bits.
Lev Walkine3e8de02013-03-19 17:16:00 -070071
Lev Walkin4d852802014-10-12 17:46:13 -0700720.9.24: 2013-Mar-16
Lev Walkin83f2a1c2010-03-10 23:09:29 +000073
Lev Walkin4d852802014-10-12 17:46:13 -070074 * GeneralizedTime fix for working with time offsets which are not
75 representable in whole hours. (Severity: low; Security impact: low)
76 Thanks to IP Fabrics, Inc.
77 * Added -fincludes-quoted to asn1c to generate #includes in "double"
78 instead of <angle> quotes.
79 * PER encoding correctness fix. (Severity: high; Security impact: low)
80 Reported by Grzegorz Aksamit.
81 * ENUMERATED extension values check relaxed. Reported by Gabriel Burca.
82 * Fixed decimal decoding of REAL values in -fnative-types mode
83 (Severity: medium; Security impact: medium)
84 * Removed webcgi subproject (introduced in 2004) as useless.
Lev Walkin83f2a1c2010-03-10 23:09:29 +000085
Lev Walkin4d852802014-10-12 17:46:13 -0700860.9.22: 2008-Nov-19
Lev Walkin66adab42006-09-23 02:52:12 +000087
Lev Walkin4d852802014-10-12 17:46:13 -070088 * Added -pdu=all and -pdu=<type> switches to asn1c.
89 * Added PER support for most known-multiplier string types:
90 IA5String, VisibleString, PrintableString, BMPString, UniversalString;
91 useful types: GeneralizedTime, UTCTime, ObjectDescriptor;
92 as well as REAL and OBJECT IDENTIFIER.
93 TODO: SET type.
94 * Added PER support for extensions in SEQUENCE.
95 * Multiple enhancements by Daniele Varrazzo <daniele.varrazzo@gmail.com>
96 * Fixed explicit tagging of an in-lined constructed type.
97 (Severity: low; Security impact: none).
98 * Memory leak fixed in SET OF / SEQUENCE OF when wrong encoding
99 is encountered. (Severity: medium; Security impact: low)
100 * Fixed extensibility handling of second SEQUENCE production.
101 (Severity: low; Security impact: none)
102 * Added DEFAULT handling for known multiplier string.
103 * Added a sample OMA ULP decoder (./examples/sample.source.ULP).
104 * Added full-width 32-bit integer encoding support in PER.
105 * Fixed 1-byte OOB write issue with non-standard and Windows
106 memory allocators (Severity: low; Security impact: medium).
107 Reported by Sheng Yu.
Lev Walkin66adab42006-09-23 02:52:12 +0000108
Lev Walkin4d852802014-10-12 17:46:13 -07001090.9.21: 2006-Sep-17
Lev Walkin6b3ff542006-03-06 14:51:00 +0000110
Lev Walkin4d852802014-10-12 17:46:13 -0700111 * skeletons/standard-modules directory is now used for standard types.
112 * Fixed class field access problem (Test case 98)
113 (Severity: medium; Security impact: none)
114 * Refactored Information Object Classes parsing.
115 * Refactored Parameterization support.
116 * [typedef enum foo {}] foo_e; is now e_foo, see #1287989
117 * Refactored ValueSetTypeAssignment parsing.
118 * asn-decoder-template.c renamed into converter-sample.c
119 * MEGACO (Media Gateway Control Protocol) decoder sample added.
120 * First release of PER encoder (does not encode SETs yet).
121 * Added a sample LDAP decoder (./examples/sample.source.LDAP3).
122 * Added a sample 3GPP RRC decoder (./examples/sample.source.RRC).
123 * Added a sample MEGACO (H.248.1) decoder (sample.source.MEGACO).
Lev Walkin5e155492006-03-06 11:25:53 +0000124
Lev Walkin4d852802014-10-12 17:46:13 -07001250.9.20: 2006-Mar-06
Lev Walkind1bfea62005-11-08 03:06:16 +0000126
Lev Walkin4d852802014-10-12 17:46:13 -0700127 * SET OF CHOICE, SEQUENCE OF CHOICE and a certain named S/O types
128 are represented differently in XER. THIS IS AN INCOMPATIBLE CHANGE.
129 (Test case 70) (Severity: low; Security impact: low)
130 * asn1c: Removed -ftypes88 command line option.
131 * Started PER implementation. Somewhat experimental!
Lev Walkind1bfea62005-11-08 03:06:16 +0000132
Lev Walkin4d852802014-10-12 17:46:13 -07001330.9.19: 2005-Oct-06
Lev Walkinda9a3b82005-08-16 17:00:21 +0000134
Lev Walkin4d852802014-10-12 17:46:13 -0700135 * A proper solution to circular references. No kludge flags
136 should be necessary anymore to produce reference-free code:
137 recursive dependencies are resolved automatically.
138 * Test cases 73 & 92 keep track of various circular references.
139 * Introduced compiler directives to allow finer control over the
140 generated code ("--<ASN1C...>--" in comments), (Test case 93).
141 * New feature for unber(1): -s <skip> bytes.
142 * Mandatory elements map for SET was not getting generated properly.
143 (Test case 94) (Severity: high; Security impact: low)
144 * asn1c: new command line option: -fskeletons-copy.
Lev Walkinda9a3b82005-08-16 17:00:21 +0000145
Lev Walkin4d852802014-10-12 17:46:13 -07001460.9.18: 2005-Aug-14
Lev Walkin58db6952005-08-12 05:13:35 +0000147
Lev Walkin4d852802014-10-12 17:46:13 -0700148 * The obsolete X.208 syntax is handled gracefully now (compound types'
149 member names are invented on the fly). (Test case 87).
150 * Generating enumeration tables for INTEGER types (Test case 88).
151 * Generating enumeration tables for BIT STRING types (Test case 89).
152 * Conditional INTEGER/ENUMERATED representation: long vs. INTEGER_t
153 type is chosen based on PER visible constraints (Test cases 90, 91).
154 * Union structures for CHOICE type are not anonymous anymore.
155 * Made unber(1) program more verbose: effective structure length is
156 now displayed as L="<n>" at the closing tag. (Test check-xxber.sh).
157 * Fixed unber(1)'s -1 switch for indefinite encoding length.
158 * New command line option for unber(1): -m to enable minimalistic mode.
Lev Walkin58db6952005-08-12 05:13:35 +0000159
Lev Walkin4d852802014-10-12 17:46:13 -07001600.9.17: 2005-Aug-07
Lev Walkine54e9422005-07-21 01:18:19 +0000161
Lev Walkin4d852802014-10-12 17:46:13 -0700162 * Tagging mode is implicitly IMPLICIT if AUTOMATIC TAGS is used, #30.6.
163 (Test cases 55, 86).
164 * Started to use extern "C" {} in skeleton headers.
165 * Introduced -finline-choice command line option to fix
166 yet another class of circular references.
Lev Walkine54e9422005-07-21 01:18:19 +0000167
Lev Walkin4d852802014-10-12 17:46:13 -07001680.9.16: 2005-July-04
Lev Walkin2535a692005-07-02 21:42:40 +0000169
Lev Walkin4d852802014-10-12 17:46:13 -0700170 * GeneralizedTime API now supports fractions of seconds.
171 Thanks to Bent Nicolaisen <BN@JAI.com> for support.
172 * ASN.1 parser has been tweaked to allow parsing something like
173 "SEQUENCE----comment----", which is ambiguous for many reasons.
174 * XER decoder better handles not-yet-defined future extensions.
Lev Walkin2535a692005-07-02 21:42:40 +0000175
Lev Walkina127c3a2005-07-02 08:19:26 +00001760.9.15: 2005-July-02
Lev Walkin88693e82005-05-17 21:46:18 +0000177
Lev Walkin4d852802014-10-12 17:46:13 -0700178 * Compiler now checks 64-bit overflows in constraints range handling
179 code. No effect on the code produced by the compiler.
180 * Compiler support for tagged and marked parametrized members.
181 * Empty tags to element map avoided.
182 * Compiled code GCC 4.x compatibility.
Lev Walkin88693e82005-05-17 21:46:18 +0000183
Lev Walkin4d852802014-10-12 17:46:13 -07001840.9.14: 2005-Apr-29
Lev Walkin8b2f0c92005-04-29 18:55:12 +0000185
Lev Walkin4d852802014-10-12 17:46:13 -0700186 * Fixed check-70.-fnative-integers.c test (it was failing
187 when no test directory was found).
Lev Walkin8b2f0c92005-04-29 18:55:12 +0000188
Lev Walkin4d852802014-10-12 17:46:13 -07001890.9.13: 2005-Apr-24
Lev Walkincbf5a7e2005-03-10 18:53:33 +0000190
Lev Walkin4d852802014-10-12 17:46:13 -0700191 * Added extra const qualifiers into the support code.
192 * More RFC variations supported in crfc2asn1.pl.
193 * Refined string values compatibility. (Test cases 77, 78).
194 * Support for ContainedSubtype constraints. (Test case 16).
195 * Parsing support for CONSTRAINED BY. (Test case 79).
196 * Support for CharsDefn (Quadruple and Tuple, most used in
197 ASN1-CHARACTER-MODULE) (Test case 80).
198 * Pretty-printing support for WITH COMPONENT[S]. (Test case 82).
199 * Streamed OCTET STRING decoding of large values: fixed allocation
200 problem introduced in 0.9.9. (Severity: high; Security impact: medium)
201 Reported by Yann Grossel <olrick@users.sourceforge.net>.
202 * Fixed BASIC-XER encoding of REAL numbers.
Lev Walkincbf5a7e2005-03-10 18:53:33 +0000203
Lev Walkin4d852802014-10-12 17:46:13 -07002040.9.12: 2005-Mar-10
Lev Walkine8318b82005-03-06 09:29:03 +0000205
Lev Walkin4d852802014-10-12 17:46:13 -0700206 * Fixed a name clash in produced constraint checking code.
207 * #includes are now in single quotes (to solve a name
208 clash with system's <time.h> on a Win32 system).
209 * Small refinement of XML DTD generation (`asn1c -X`).
210 * Relaxed XER processing rules to skip extra whitespace
211 in some more places. It also skips XML comments (although
212 XML comments in XER are prohibited by X.693, #8.2.1).
213 (Test case 70) (Severity: medium; Security impact: none)
214 Reported by <Dominique.Nerriec@alcatel.fr>.
215 * Constraints on primitive types being defined are now supported.
216 (Test case 74) (Severity: low; Security impact: none)
217 * XMLValueList generation fixed for CHOICE type.
218 (Severity: medium; Security impact: none)
219 * Added the GSM TAP3 decoder into ./examples/sample.source.TAP3
Lev Walkine8318b82005-03-06 09:29:03 +0000220
Lev Walkin4d852802014-10-12 17:46:13 -07002210.9.11: 2005-Mar-04
Lev Walkin87da8262005-03-03 21:29:10 +0000222
Lev Walkin4d852802014-10-12 17:46:13 -0700223 * Released -fcompound-names to fix the name clashes in the code
224 produced by the asn1c.
225 * Released -fno-include-deps to avoid #including non-critical
226 external dependencies.
227 * Compiler is taught to produce compilable code for yet another class
228 of circular ASN.1 type references.
229 * X.693:8.3.4 prohibits anything but SignedNumber; fixed XER codec.
230 * Fixed ENUMERATED identifier to value conversion in XER.
231 Reported by <jacque.celaire@caramail.com>.
232 * If the compiled file contents are the same as in already existing
233 file (left from previous compilation), the old file is retained.
234 This prevents thrashing `make` dependencies if amount of changes in
235 the original ASN.1 module(s) is small.
Lev Walkin87da8262005-03-03 21:29:10 +0000236
Lev Walkin4d852802014-10-12 17:46:13 -07002370.9.10: 2005-Feb-25
Lev Walkin043af0d2005-02-24 21:07:35 +0000238
Lev Walkin4d852802014-10-12 17:46:13 -0700239 * Completed the XER XMLValueList encoding and decoding.
240 * Native integer type is now using "long".
241 * Fixed #1150856. Reported by <vvvy@users.sourceforge.net>.
242 * Some WIN32 portability fixes.
Lev Walkin043af0d2005-02-24 21:07:35 +0000243
Lev Walkin4d852802014-10-12 17:46:13 -07002440.9.9: 2005-Feb-22
Lev Walkind2388382005-01-17 15:27:47 +0000245
Lev Walkin4d852802014-10-12 17:46:13 -0700246 * First release of XER (XML) decoding implementation (somewhat
247 experimental).
248 * ANY allocation routine fixed.
249 Reported by <mikko.ahonen@elma.net>.
250 * Fixed tag parsing (tags like "[ 0 ]" were not supported).
251 * Compiler now checks for duplicate ASN.1 types across modules.
Lev Walkind2388382005-01-17 15:27:47 +0000252
Lev Walkin4d852802014-10-12 17:46:13 -07002530.9.8: 2005-Jan-17
Lev Walkin144db9b2004-10-12 23:26:53 +0000254
Lev Walkin4d852802014-10-12 17:46:13 -0700255 * [NEW PLATFORM] Compiled and tested on Linux @ alpha64 (LP64).
256 Some code needed to be fixed regarding int-long conversions
257 (mostly inside the test suite), and floating point handling
258 code needed to be restructured to handle signalling NAN and
259 other floating point exceptions quietly. Smooth transition!
260 * [NEW PLATFORM] Compiled and tested on Sun Solaris 9 @ sparc.
261 Improved includes/defines of/for system headers.
262 * -X command line option added to asn1c to generate XML DTD.
263 * Empty SEQUENCE and SET clauses are now allowed.
264 * Removed confusion between &xNN; and &#xNN; in enber and unber.
265 * Removed order dependency in DEFAULT references to ENUMERATED
266 identifiers (./tests/68-*-OK.asn1).
267 * ber_dec_rval_t renamed into asn_dec_rval_t: more generality.
268 * Extensions in CHOICE types are properly marked as non-pointers
269 (Test case 59) (Severity: medium; Security impact: medium)
270 Reported by <roman.pfender@sdm.de>.
271 * Tagged CHOICE type is now supported again.
272 (Test case 59) (Severity: low; Security impact: low)
273 Reported by <orlinkata@dir.bg>.
274 * Implemented der_encode_to_buffer() procedure.
Lev Walkin144db9b2004-10-12 23:26:53 +0000275
Lev Walkin4d852802014-10-12 17:46:13 -07002760.9.7.1: 2004-Oct-12
Lev Walkin144db9b2004-10-12 23:26:53 +0000277
Lev Walkin4d852802014-10-12 17:46:13 -0700278 * Fixed automatic tagging for extensions of compound types.
279 * Fixed ParametrizedReference parsing: {} are now recognized.
Lev Walkin144db9b2004-10-12 23:26:53 +0000280
Lev Walkin4d852802014-10-12 17:46:13 -07002810.9.7: 2004-Oct-11
Lev Walkin0ca7aec2004-10-02 00:12:11 +0000282
Lev Walkin4d852802014-10-12 17:46:13 -0700283 * Finished CXER implementation by adding SET and SET OF canonical
284 ordering support.
285 * Fixed unber(1) limits controlling logic.
286 * Removed C99'izm from the x509dump, now understood by older compilers.
287 * Enhanced UTF8String constraint validation, now it checks
288 for the minimal encoding length; API of UTF8String_length() changed.
289 * Fixed SEQUENCE dealing with premature termination of the
290 optionals-laden indefinite length structure. The code was previously
291 refusing to parse such structures.
292 * Fixed explicitly tagged ANY type encoding and decoding
293 (Severity: medium; Security impact: low).
294 * Fixed CHOICE code spin when indefinite length structures appear
295 in the extensions (Severity: medium; Security impact: medium).
296 Reported by <siden@ul-gsm.ru>.
297 * BIT STRING now stores the number of unused octets in a separate field.
Lev Walkin0ca7aec2004-10-02 00:12:11 +0000298
Lev Walkin4d852802014-10-12 17:46:13 -07002990.9.6: 2004-Sep-29
Lev Walkin33cded12004-09-19 19:40:52 +0000300
Lev Walkin4d852802014-10-12 17:46:13 -0700301 * Added several security firewalls: decoder's stack usage control
302 and the stricter checking of the TLV length.
303 * Implemented BASIC-XER encoding support (X.693).
304 * Implemented unber(1) and enber(1) for BER<->XML translation.
305 * Implemented CGI for online ASN.1 compilation (asn1c/webcgi).
306 * Implemented the sample X.509 decoder (./examples/sample.source.PKIX1).
307 * NamedType is now supported for SET OF/SEQUENCE OF type.
308 * Added -fno-constraints option to asn1c, which disabled generation of
309 ASN.1 subtype constraints checking code.
310 * Added ASN1C_ENVIRONMENT_VERSION and get_asn1c_environment_version().
311 * Fixed ANY type decoding (Severity: high; Security impact: low).
312 * Fixed BER decoder restartability problem with certain primitive
313 types (BOOLEAN, INTEGER, and REAL). The problem occured when the
314 encoding of such type is split between several bytes.
315 (Severity: high; Security impact: low)
316 * Support for cross-referencing type definitions (updated ./tests/43-*).
317 * Fixed pretty-printing of the REAL type. Added lots of test cases.
318 * Renamed asn1_* into asn_* in function and type names.
319 * Updated documentation.
Lev Walkin33cded12004-09-19 19:40:52 +0000320
Lev Walkin4d852802014-10-12 17:46:13 -07003210.9.5: 2004-Sep-17
Lev Walkinb4adfd32004-09-13 08:32:15 +0000322
Lev Walkin4d852802014-10-12 17:46:13 -0700323 * Fixed CER (common BER) decoder code. See check-25.c/VisibleString
324 case for details. X.690 specifies that inner structures in BER
325 encoding must be tagged by stripping off the outer tag for each
326 subsequent containment level. See also X.690: 8.21.5.4 and
327 the "Spouse" case in A.3.
328 (Severity: medium; Security impact: low)
329 * Added converters between any generic type and the ANY type.
330 * Parser fixed: Information Object Class fields may be taged.
331 * Parser fixed: tagged types inside SEQUENCE OF/SET OF support.
332 * Improved DEFAULT Value parsing and pretty-printing.
333 * Condition on distinct tags checker was incorrectly dealing with
334 tagged CHOICE types. Fixed. Modified tests/37-indirect-choice-OK.asn1
335 * Improved type name generation code ("struct foo" vs "foo_t").
336 * Fixed constraint checking code incorrectly dealing with imported
337 types with constraint values defined in other modules.
338 * Real REAL support! (Haven't tested denormals support yet!)
339 See skeletons/tests/check-REAL.c
Lev Walkinb4adfd32004-09-13 08:32:15 +0000340
Lev Walkin4d852802014-10-12 17:46:13 -07003410.9.4: 2004-Sep-10
Lev Walkin4a727052004-09-10 09:38:17 +0000342
Lev Walkin4d852802014-10-12 17:46:13 -0700343 * More support for recursive type definitions.
344 * Explicit support for ANY type decoding.
345 * Refactored tags processing code.
346 * Fixed constraints checking code: non-exploitable buffer overflow.
347 (Severity: medium; Security impact: low)
Lev Walkin4a727052004-09-10 09:38:17 +0000348
Lev Walkin4d852802014-10-12 17:46:13 -07003490.9.3: 2004-Sep-07
Lev Walkin8059bc42004-08-26 06:19:23 +0000350
Lev Walkin4d852802014-10-12 17:46:13 -0700351 * Extended constraints support in parametrized types.
352 * Better support for parametrization and constraints handling.
353 * Better handling of recursive type definitions.
354 * Added support for ANY type.
Lev Walkin8059bc42004-08-26 06:19:23 +0000355
Lev Walkin4d852802014-10-12 17:46:13 -07003560.9.2: 2004-Aug-24
Lev Walkin4ce78ca2004-08-25 01:34:11 +0000357
Lev Walkin4d852802014-10-12 17:46:13 -0700358 * More flexible subtype constraints handling, with relaxed
359 PER visibility rules for actual constraints checking code generator.
360 * Indirect references in constraints resolver code fixed.
361 * Avoided compilation warning on gcc 3.3.3 systems.
362 * Better ValueSet printing.
Lev Walkin4ce78ca2004-08-25 01:34:11 +0000363
Lev Walkin4d852802014-10-12 17:46:13 -07003640.9.1: 2004-Aug-23
Lev Walkinfa66e082004-08-24 05:25:57 +0000365
Lev Walkin4d852802014-10-12 17:46:13 -0700366 * Documentation updated: doc/asn1c-usage.pdf
367 * Fixed OBJECT IDENTIFIER human-readable printing.
368 Reported by <siden@ul-gsm.ru>.
Lev Walkinfa66e082004-08-24 05:25:57 +0000369
Lev Walkin4d852802014-10-12 17:46:13 -07003700.9: 2004-Aug-23
Lev Walkin3d0b5a32004-08-18 05:43:55 +0000371
Lev Walkin4d852802014-10-12 17:46:13 -0700372 * Reworked subtype constraints handling, aiming at PER-applicability.
373 * BOOLEAN and NULL are now implemented in terms of native int type.
374 * Compiler now links in only necessary skeleton files.
375 * -t option added to asn1c to ease manual BER/CER/DER decoding.
376 * Added support COMPONENTS OF construct.
377 * Numerous parser fixes and enhancements.
378 * Better constraint failure reporting.
Lev Walkin3d0b5a32004-08-18 05:43:55 +0000379
Lev Walkin4d852802014-10-12 17:46:13 -07003800.8.19: 2004-Aug-18
Lev Walkin1ef79852004-08-18 09:05:12 +0000381
Lev Walkin4d852802014-10-12 17:46:13 -0700382 * Fixed BER encoder (problem encoding large tag values)
383 (Severity: medium; Security impact: low)
Lev Walkin1ef79852004-08-18 09:05:12 +0000384
Lev Walkin4d852802014-10-12 17:46:13 -07003850.8.18: 2004-Aug-12
Lev Walkinb0892fe2004-08-13 12:39:17 +0000386
Lev Walkin4d852802014-10-12 17:46:13 -0700387 * Parser: fixed multiple IMPORTS problem (incorrect assertion).
388 * Parser: constraints extensibility parsing fix.
Lev Walkinb0892fe2004-08-13 12:39:17 +0000389
Lev Walkin4d852802014-10-12 17:46:13 -07003900.8.17: 2004-Aug-11
Lev Walkind8b940c2004-08-11 05:35:51 +0000391
Lev Walkin4d852802014-10-12 17:46:13 -0700392 * Improved compiler output: duplicate #includes eliminated.
393 * Win32 portability fixes.
394 * More compatibility with C++ or non-GCC compilers.
Lev Walkind8b940c2004-08-11 05:35:51 +0000395
Lev Walkin4d852802014-10-12 17:46:13 -07003960.8.16: 2004-Jul-22
Lev Walkinab42ef92004-07-22 12:19:42 +0000397
Lev Walkin4d852802014-10-12 17:46:13 -0700398 * Fixed application-level problem in SET OF/SEQUENCE OF array cleanup.
399 (Severity: medium; Security impact: low)
400 * Improved asn_GT2time() and added asn_time2{GT,UT}() functions.
401 * BIT STRING pretty-printing.
Lev Walkinab42ef92004-07-22 12:19:42 +0000402
Lev Walkin4d852802014-10-12 17:46:13 -07004030.8.15: 2004-Jul-20
Lev Walkin29a62262004-07-15 10:52:58 +0000404
Lev Walkin4d852802014-10-12 17:46:13 -0700405 * Fixed parser: memory leak in free_struct code for SET OF/SEQUENCE OF.
406 (Severity: high; Security impact: medium)
407 * Fixed parser: invalid memory reference in code constructing tags.
408 (Test case 48) (Severity: high; Security impact: medium)
409 When encoding data for certain ASN.1 specifications containing
410 explicit tags, the tag is always written incorrectly due to
411 incorrect memory reference. The encoding will almost always produce
412 unparseable data and might well reference unmapped region so program
413 would produce segmentation violation. Fortunately, memory is
414 read, not written, so remote exploits cannot execute arbitrary
415 code and triggering unmapped memory reference is highly unlikely
416 even it attacker knows the code (basically, the compiler should place
417 asn1_DEF_... right before the end of the mapped memory region, which
418 is extremely rare).
419 * Improved INTEGER type printing.
Lev Walkin29a62262004-07-15 10:52:58 +0000420
Lev Walkin4d852802014-10-12 17:46:13 -07004210.8.14: 2004-Jun-30
Lev Walkin35631482004-07-01 00:52:50 +0000422
Lev Walkin4d852802014-10-12 17:46:13 -0700423 * Fixed compiler: extensibility of CHOICE and SET type has not been
424 taken into account during table construction.
425 (Test case 47) (Severity: high; Security impact: low)
Lev Walkin35631482004-07-01 00:52:50 +0000426
Lev Walkin4d852802014-10-12 17:46:13 -07004270.8.13: 2004-Jun-29
Lev Walkind0d63f02004-06-28 21:22:20 +0000428
Lev Walkin4d852802014-10-12 17:46:13 -0700429 * Fixed compiler: the skip values for IMPLICIT tagging were broken
430 in some complex cases where one type is defined using another.
431 (Test case 46) (Severity: medium; Security impact: low).
432 * Added -fknown-extern-type command line parameter to asn1c.
433 * Removed -N command line flag and underlying functionality
434 to honor KISS principle.
Lev Walkind0d63f02004-06-28 21:22:20 +0000435
Lev Walkin4d852802014-10-12 17:46:13 -07004360.8.12: 2004-Jun-17
Lev Walkin715f45c2004-06-14 13:53:32 +0000437
Lev Walkin4d852802014-10-12 17:46:13 -0700438 * RELATIVE-OID and OBJECT IDENTIFIER encoders/decoders are not bound
439 anymore to an integer type of specific size (unsigned long). The
440 size of an integer must be provided explicitly.
441 See {OBJECT_IDENTIFIER|RELATIVE_OID}_{get|set}_arcs().
442 * SEQUENCE BER decoder fixed again for complex CHOICE case
443 (Test case 44) (Severity: medium; Security impact: low).
Lev Walkin715f45c2004-06-14 13:53:32 +0000444
Lev Walkin4d852802014-10-12 17:46:13 -07004450.8.11: 2004-Jun-05
Lev Walkin67c2aec2004-06-05 08:47:18 +0000446
Lev Walkin4d852802014-10-12 17:46:13 -0700447 * Enforced stricter conformance with C standards.
448 * SEQUENCE BER decoder is now equipped with the sorted map
449 in case of complex CHOICE descendants. Test case 44 created.
Lev Walkin67c2aec2004-06-05 08:47:18 +0000450
Lev Walkin4d852802014-10-12 17:46:13 -07004510.8.10: 2004-Jun-02
Lev Walkinf15320b2004-06-03 03:38:44 +0000452
Lev Walkin4d852802014-10-12 17:46:13 -0700453 * Added const qualifier where necessary.
454 * Changed position of outmost_tag fetcher within asn1_TYPE_descriptor_t
455 structure.
Lev Walkinf15320b2004-06-03 03:38:44 +0000456
Lev Walkin4d852802014-10-12 17:46:13 -07004570.8.9: 2004-May-26
Lev Walkinf15320b2004-06-03 03:38:44 +0000458
Lev Walkin4d852802014-10-12 17:46:13 -0700459 * Added *_{get|set}_arcs_*() functions for OBJECT IDENTIFIER
460 and RELATIVE-OID, together with test cases.
Lev Walkinf15320b2004-06-03 03:38:44 +0000461
Lev Walkin4d852802014-10-12 17:46:13 -07004620.8.8: 2004-May-09
Lev Walkinf15320b2004-06-03 03:38:44 +0000463
Lev Walkin4d852802014-10-12 17:46:13 -0700464 * Introduced subtype constraints support (incomplete!).
465 * Fixed compiler. If the last member of the SEQUENCE is OPTIONAL
466 and absent in the encoding, and the type is extensible (...) or
467 EXTENSIBILITY IMPLIED flag is set, then the structure could not
468 be correctly decoded. (Severity: high; Security impact: low).
469 * Compiler: fixed recursive ASN.1 types inclusion (Severity: low,
470 Security impact: none).
471 * Parser: IMPORTS/FROM fixes, now allowing multiple sections.
472 * NEW PLATFORM: Compiled and tested on MacOS X (@ PowerPC).
473 No major portability issues experienced.
Lev Walkinf15320b2004-06-03 03:38:44 +0000474
Lev Walkin4d852802014-10-12 17:46:13 -07004750.8.7: 2004-Apr-11 T-version-0-8-7
Lev Walkinf15320b2004-06-03 03:38:44 +0000476
Lev Walkin4d852802014-10-12 17:46:13 -0700477 * Fixed SEQUENCE BER decoder: if the last member of the SEQUENCE is
478 OPTIONAL and absent in the encoding, RC_FAIL was returned instead
479 of RC_OK (Severity: high; Security impact: low).
480 * Added test case to check the above problem.
481 * Added test case to check -fnative-integers mode.
Lev Walkinf15320b2004-06-03 03:38:44 +0000482
Lev Walkin4d852802014-10-12 17:46:13 -07004830.8.6: 2004-Apr-03 T-version-0-8-6
Lev Walkinf15320b2004-06-03 03:38:44 +0000484
Lev Walkin4d852802014-10-12 17:46:13 -0700485 * Fixed compiler output for embedded ASN.1 structures.
Lev Walkinf15320b2004-06-03 03:38:44 +0000486
Lev Walkin4d852802014-10-12 17:46:13 -07004870.8.5: 2004-Mar-28 T-version-0-8-5
Lev Walkinf15320b2004-06-03 03:38:44 +0000488
Lev Walkin4d852802014-10-12 17:46:13 -0700489 * Fixed ber_tlv_length() computation problem (Severity: high,
490 Security impact: none).
491 Reported by <vss@high.net.ru>
Lev Walkinf15320b2004-06-03 03:38:44 +0000492
Lev Walkin4d852802014-10-12 17:46:13 -07004930.8.4: 2004-Mar-22
Lev Walkinf15320b2004-06-03 03:38:44 +0000494
Lev Walkin4d852802014-10-12 17:46:13 -0700495 * Removed RC_ITAG enumeration element from BER decoder.
496 This return code did not have much practical value.
Lev Walkinf15320b2004-06-03 03:38:44 +0000497
Lev Walkin4d852802014-10-12 17:46:13 -07004980.8.3: 2004-Mar-14 T-version-0-8-3
Lev Walkinf15320b2004-06-03 03:38:44 +0000499
Lev Walkin4d852802014-10-12 17:46:13 -0700500 * Fixed SET::BER decoder: restart after reaching a buffer boundary
501 weas broken (Severity: high; Security impact: low).
502 * Fixed OCTET STRING::BER decoder: restart after reaching a buffer
503 boundary was broken (Severity: high; Security impact: low).
504 Reported by <vss@high.net.ru>
505 * Added test cases to check decoders restartability.
506 * Slightly more general INTEGER2long decoder.
507 * Allowed nested /* C-type */ comments, as per X.680:2002.
Lev Walkinf15320b2004-06-03 03:38:44 +0000508
Lev Walkin4d852802014-10-12 17:46:13 -07005090.8.2: 2004-Mar-01 T-version-0-8-2
Lev Walkinf15320b2004-06-03 03:38:44 +0000510
Lev Walkin4d852802014-10-12 17:46:13 -0700511 * Fixed SEQUENCE BER decoder: an OPTIONAL element was required, where
512 should not have been (Severity: major; Security impact: low).
513 * Fixed print_struct pointer inheritance.
514 * Added -fno-c99 and -funnamed-unions
Lev Walkinf15320b2004-06-03 03:38:44 +0000515
Lev Walkin4d852802014-10-12 17:46:13 -07005160.8.1: 2004-Feb-22
Lev Walkinf15320b2004-06-03 03:38:44 +0000517
Lev Walkin4d852802014-10-12 17:46:13 -0700518 * -R switch to asn1c: Omit support code, compile only the tables.
519 * Introduced NativeInteger pseudotype.
520 * Corrected the informal print_struct()'s output format.
Lev Walkinf15320b2004-06-03 03:38:44 +0000521
Lev Walkin4d852802014-10-12 17:46:13 -07005220.8.0: 2004-Feb-03 T-version-0-8-0
Lev Walkinf15320b2004-06-03 03:38:44 +0000523
Lev Walkin4d852802014-10-12 17:46:13 -0700524 * Some documentation is created (a .pdf and a short manual page).
525 * Last touches to the code.
Lev Walkinf15320b2004-06-03 03:38:44 +0000526
Lev Walkin4d852802014-10-12 17:46:13 -07005270.7.9: 2004-Feb-01 T-version-0-7-9
Lev Walkinf15320b2004-06-03 03:38:44 +0000528
Lev Walkin4d852802014-10-12 17:46:13 -0700529 * Human readable printing support.
530 * Support for implicit (standard) constraints.
Lev Walkinf15320b2004-06-03 03:38:44 +0000531
Lev Walkin4d852802014-10-12 17:46:13 -07005320.7.8: 2004-Jan-31
Lev Walkinf15320b2004-06-03 03:38:44 +0000533
Lev Walkin4d852802014-10-12 17:46:13 -0700534 * SET now rejects duplicate fields in the data stream.
Lev Walkinf15320b2004-06-03 03:38:44 +0000535
Lev Walkin4d852802014-10-12 17:46:13 -07005360.7.7: 2004-Jan-25
Lev Walkinf15320b2004-06-03 03:38:44 +0000537
Lev Walkin4d852802014-10-12 17:46:13 -0700538 * Added types: GeneralizedTime and UTCTime.
Lev Walkinf15320b2004-06-03 03:38:44 +0000539
Lev Walkin4d852802014-10-12 17:46:13 -07005400.7.6: 2004-Jan-24 T-version-0-7-6
Lev Walkinf15320b2004-06-03 03:38:44 +0000541
Lev Walkin4d852802014-10-12 17:46:13 -0700542 * DER encoding of a SET OF now involves dynamic sorting.
Lev Walkinf15320b2004-06-03 03:38:44 +0000543
Lev Walkin4d852802014-10-12 17:46:13 -07005440.7.5: 2004-Jan-24 T-version-0-7-5
Lev Walkinf15320b2004-06-03 03:38:44 +0000545
Lev Walkin4d852802014-10-12 17:46:13 -0700546 * DER encoding of a SET with untagged CHOICE
547 now involves dynamic sorting.
Lev Walkinf15320b2004-06-03 03:38:44 +0000548
Lev Walkin4d852802014-10-12 17:46:13 -07005490.7.0: 2004-Jan-19 T-version-0-7-0
Lev Walkinf15320b2004-06-03 03:38:44 +0000550
Lev Walkin4d852802014-10-12 17:46:13 -0700551 * A bunch of DER encoders is implemented.
Lev Walkinf15320b2004-06-03 03:38:44 +0000552
Lev Walkin4d852802014-10-12 17:46:13 -07005530.6.6: 2004-Jan-11
Lev Walkinf15320b2004-06-03 03:38:44 +0000554
Lev Walkin4d852802014-10-12 17:46:13 -0700555 * Implemented CHOICE decoder.
556 * Implemented destructors support.
Lev Walkinf15320b2004-06-03 03:38:44 +0000557
Lev Walkin4d852802014-10-12 17:46:13 -07005580.6.5: 2004-Jan-03
Lev Walkinf15320b2004-06-03 03:38:44 +0000559
Lev Walkin4d852802014-10-12 17:46:13 -0700560 * Implemented SET decoder.
561 * Implemented SET OF and SEQUENCE OF decoders.
Lev Walkinf15320b2004-06-03 03:38:44 +0000562
Lev Walkin4d852802014-10-12 17:46:13 -07005630.6.4: 2003-Dec-31
Lev Walkinf15320b2004-06-03 03:38:44 +0000564
Lev Walkin4d852802014-10-12 17:46:13 -0700565 * Implemented BOOLEAN, NULL, ENUMERATED decoders.
566 * Implemented OCTET STRING decoder.
567 * Implemented BIT STRING decoder.
Lev Walkinf15320b2004-06-03 03:38:44 +0000568
Lev Walkin4d852802014-10-12 17:46:13 -07005690.6: 2003-Dec-30
Lev Walkinf15320b2004-06-03 03:38:44 +0000570
Lev Walkin4d852802014-10-12 17:46:13 -0700571 * First decoding of a BER-encoded structure!
Lev Walkinf15320b2004-06-03 03:38:44 +0000572
Lev Walkin4d852802014-10-12 17:46:13 -07005730.5: 2003-Dec-28
Lev Walkinf15320b2004-06-03 03:38:44 +0000574
Lev Walkin4d852802014-10-12 17:46:13 -0700575 * Framework and most of the compiler backbone coding done.
Lev Walkinf15320b2004-06-03 03:38:44 +0000576
Lev Walkin4d852802014-10-12 17:46:13 -07005770.1: 2003-Nov-28
Lev Walkinf15320b2004-06-03 03:38:44 +0000578
Lev Walkin4d852802014-10-12 17:46:13 -0700579 * Programming started.
Lev Walkin6d67d912004-10-05 06:39:35 +0000580
581=== Bug importance disclosure terms ===
582
583SEVERITY.
584 This term applies to the frequence the particular construct is used
585 in the real world. The higher the frequency, the more chances of triggering
586 this bug.
Lev Walkin4d852802014-10-12 17:46:13 -0700587 low: The ASN.1 specifications which could trigger
588 this kind of bug are not widespread.
589 medium: The particular ASN.1 construct is used quite often,
590 so the chance of triggering an error is considerable.
591 high: This fix is considered urgent, or the particular ASN.1
592 construct triggering this bug is in wide use.
Lev Walkin6d67d912004-10-05 06:39:35 +0000593
594SECURITY IMPACT.
595 This term applies to the amount of potential damage a bug exploitation
596 could cause.
Lev Walkin4d852802014-10-12 17:46:13 -0700597 none: No malicious exploitation is possible.
598 low: The local exploitation is unlikely; the remote exploitation
599 is not possible.
600 medium: The remote exploitation is possible when a particular ASN.1
601 construct is being used. If possible, only hard failure, spin
602 or memory leak are the possible outcome: no shellcode
603 injection could possibly be carried by the attack.
604 high: The remote shellcode injection is possible, or the bug is
605 otherwise remotely exploitable for most specifications.
Lev Walkin6d67d912004-10-05 06:39:35 +0000606