blob: 78e26da4f4cc959316394f0bb82287ae501e695d [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001
Lev Walkineace46c2014-09-17 02:18:44 -070020.9.??:
Lev Walkinc644d992015-09-14 13:45:36 -07003 * PER decoding: avoid memory leak on error. By github.com/simo5
Lev Walkin108d4f92014-10-12 18:58:14 -07004 * Constness patch #46 by Wim L <wiml@omnigroup.com> (41bbf1c..78d604f).
Lev Walkina1e5b9d2015-09-14 12:50:42 -07005 Build issues:
6 * Fixed generated file permissions introduced by earlier pull (issue/32).
Lev Walkin108d4f92014-10-12 18:58:14 -07007 * Win32/MinGW patch #31 by Frank Morgner (frankmorgner).
Lev Walkina1e5b9d2015-09-14 12:50:42 -07008 * Autoreconf fix patch by Dave Cridland (github.com/dwd)
9 * Fix autoreconf-2.69 failure by github.com/brchiu
Lev Walkinc644d992015-09-14 13:45:36 -070010 * Fix C99 warnings. Fix by Adrien Destugues (github.com/pulkomandy).
Lev Walkin7c691052015-09-14 13:50:14 -070011 * C89 compliance fix by Jaroslav Imrich (github.com/jariq).
Lev Walkin7c1dc052016-03-14 03:08:15 -070012 * C standard compliance fixes by Markus Elfring (github.com/elfring).
Lev Walkineace46c2014-09-17 02:18:44 -070013
Lev Walkinb0ed8182014-09-17 01:55:37 -0700140.9.27: 2014-Sep-17
Lev Walkin65907f02014-09-14 17:19:21 -070015 * Build structure fixes for portability.
Lev Walkin58ecc7b2014-09-17 00:32:03 -070016 * Disable long debug of ASN.1 operations during `make check` stage.
17 * Introduce --enable-ASN_DEBUG configure flag to emit long debug output.
Lev Walkin65907f02014-09-14 17:19:21 -070018
Lev Walkine0d321a2014-09-11 01:28:57 -0700190.9.26: 2014-Sep-11
Lev Walkin4d852802014-10-12 17:46:13 -070020 * Updated asn1c-usage.pdf.
21 * Made -fskeletons-copy a default option; removed cmdline option.
22 * Made -fnative-types a default option; removed cmdline option.
23 Added -fwide-types for backwards compatibility.
Lev Walkin4062b012013-10-11 14:29:38 -070024 * Add -fline-refs to avoid being unfriendly to version control systems.
Lev Walkin6169b8d2013-12-07 11:02:44 -080025 * Default constraint checking fix.
26 Thanks to Bartosz Marcinkiewicz <bma@megawatt.com.pl>
Lev Walkinaa61a0f2014-01-13 23:08:47 -080027 * Get rid of non-standard pointer arithmetics on void* pointer.
Lev Walkin6c527842014-02-09 04:34:54 -080028 * PER-encoding of integers wider than 32 bits.
Lev Walkine3e8de02013-03-19 17:16:00 -070029
Lev Walkin4d852802014-10-12 17:46:13 -0700300.9.24: 2013-Mar-16
Lev Walkin83f2a1c2010-03-10 23:09:29 +000031
Lev Walkin4d852802014-10-12 17:46:13 -070032 * GeneralizedTime fix for working with time offsets which are not
33 representable in whole hours. (Severity: low; Security impact: low)
34 Thanks to IP Fabrics, Inc.
35 * Added -fincludes-quoted to asn1c to generate #includes in "double"
36 instead of <angle> quotes.
37 * PER encoding correctness fix. (Severity: high; Security impact: low)
38 Reported by Grzegorz Aksamit.
39 * ENUMERATED extension values check relaxed. Reported by Gabriel Burca.
40 * Fixed decimal decoding of REAL values in -fnative-types mode
41 (Severity: medium; Security impact: medium)
42 * Removed webcgi subproject (introduced in 2004) as useless.
Lev Walkin83f2a1c2010-03-10 23:09:29 +000043
Lev Walkin4d852802014-10-12 17:46:13 -0700440.9.22: 2008-Nov-19
Lev Walkin66adab42006-09-23 02:52:12 +000045
Lev Walkin4d852802014-10-12 17:46:13 -070046 * Added -pdu=all and -pdu=<type> switches to asn1c.
47 * Added PER support for most known-multiplier string types:
48 IA5String, VisibleString, PrintableString, BMPString, UniversalString;
49 useful types: GeneralizedTime, UTCTime, ObjectDescriptor;
50 as well as REAL and OBJECT IDENTIFIER.
51 TODO: SET type.
52 * Added PER support for extensions in SEQUENCE.
53 * Multiple enhancements by Daniele Varrazzo <daniele.varrazzo@gmail.com>
54 * Fixed explicit tagging of an in-lined constructed type.
55 (Severity: low; Security impact: none).
56 * Memory leak fixed in SET OF / SEQUENCE OF when wrong encoding
57 is encountered. (Severity: medium; Security impact: low)
58 * Fixed extensibility handling of second SEQUENCE production.
59 (Severity: low; Security impact: none)
60 * Added DEFAULT handling for known multiplier string.
61 * Added a sample OMA ULP decoder (./examples/sample.source.ULP).
62 * Added full-width 32-bit integer encoding support in PER.
63 * Fixed 1-byte OOB write issue with non-standard and Windows
64 memory allocators (Severity: low; Security impact: medium).
65 Reported by Sheng Yu.
Lev Walkin66adab42006-09-23 02:52:12 +000066
Lev Walkin4d852802014-10-12 17:46:13 -0700670.9.21: 2006-Sep-17
Lev Walkin6b3ff542006-03-06 14:51:00 +000068
Lev Walkin4d852802014-10-12 17:46:13 -070069 * skeletons/standard-modules directory is now used for standard types.
70 * Fixed class field access problem (Test case 98)
71 (Severity: medium; Security impact: none)
72 * Refactored Information Object Classes parsing.
73 * Refactored Parameterization support.
74 * [typedef enum foo {}] foo_e; is now e_foo, see #1287989
75 * Refactored ValueSetTypeAssignment parsing.
76 * asn-decoder-template.c renamed into converter-sample.c
77 * MEGACO (Media Gateway Control Protocol) decoder sample added.
78 * First release of PER encoder (does not encode SETs yet).
79 * Added a sample LDAP decoder (./examples/sample.source.LDAP3).
80 * Added a sample 3GPP RRC decoder (./examples/sample.source.RRC).
81 * Added a sample MEGACO (H.248.1) decoder (sample.source.MEGACO).
Lev Walkin5e155492006-03-06 11:25:53 +000082
Lev Walkin4d852802014-10-12 17:46:13 -0700830.9.20: 2006-Mar-06
Lev Walkind1bfea62005-11-08 03:06:16 +000084
Lev Walkin4d852802014-10-12 17:46:13 -070085 * SET OF CHOICE, SEQUENCE OF CHOICE and a certain named S/O types
86 are represented differently in XER. THIS IS AN INCOMPATIBLE CHANGE.
87 (Test case 70) (Severity: low; Security impact: low)
88 * asn1c: Removed -ftypes88 command line option.
89 * Started PER implementation. Somewhat experimental!
Lev Walkind1bfea62005-11-08 03:06:16 +000090
Lev Walkin4d852802014-10-12 17:46:13 -0700910.9.19: 2005-Oct-06
Lev Walkinda9a3b82005-08-16 17:00:21 +000092
Lev Walkin4d852802014-10-12 17:46:13 -070093 * A proper solution to circular references. No kludge flags
94 should be necessary anymore to produce reference-free code:
95 recursive dependencies are resolved automatically.
96 * Test cases 73 & 92 keep track of various circular references.
97 * Introduced compiler directives to allow finer control over the
98 generated code ("--<ASN1C...>--" in comments), (Test case 93).
99 * New feature for unber(1): -s <skip> bytes.
100 * Mandatory elements map for SET was not getting generated properly.
101 (Test case 94) (Severity: high; Security impact: low)
102 * asn1c: new command line option: -fskeletons-copy.
Lev Walkinda9a3b82005-08-16 17:00:21 +0000103
Lev Walkin4d852802014-10-12 17:46:13 -07001040.9.18: 2005-Aug-14
Lev Walkin58db6952005-08-12 05:13:35 +0000105
Lev Walkin4d852802014-10-12 17:46:13 -0700106 * The obsolete X.208 syntax is handled gracefully now (compound types'
107 member names are invented on the fly). (Test case 87).
108 * Generating enumeration tables for INTEGER types (Test case 88).
109 * Generating enumeration tables for BIT STRING types (Test case 89).
110 * Conditional INTEGER/ENUMERATED representation: long vs. INTEGER_t
111 type is chosen based on PER visible constraints (Test cases 90, 91).
112 * Union structures for CHOICE type are not anonymous anymore.
113 * Made unber(1) program more verbose: effective structure length is
114 now displayed as L="<n>" at the closing tag. (Test check-xxber.sh).
115 * Fixed unber(1)'s -1 switch for indefinite encoding length.
116 * New command line option for unber(1): -m to enable minimalistic mode.
Lev Walkin58db6952005-08-12 05:13:35 +0000117
Lev Walkin4d852802014-10-12 17:46:13 -07001180.9.17: 2005-Aug-07
Lev Walkine54e9422005-07-21 01:18:19 +0000119
Lev Walkin4d852802014-10-12 17:46:13 -0700120 * Tagging mode is implicitly IMPLICIT if AUTOMATIC TAGS is used, #30.6.
121 (Test cases 55, 86).
122 * Started to use extern "C" {} in skeleton headers.
123 * Introduced -finline-choice command line option to fix
124 yet another class of circular references.
Lev Walkine54e9422005-07-21 01:18:19 +0000125
Lev Walkin4d852802014-10-12 17:46:13 -07001260.9.16: 2005-July-04
Lev Walkin2535a692005-07-02 21:42:40 +0000127
Lev Walkin4d852802014-10-12 17:46:13 -0700128 * GeneralizedTime API now supports fractions of seconds.
129 Thanks to Bent Nicolaisen <BN@JAI.com> for support.
130 * ASN.1 parser has been tweaked to allow parsing something like
131 "SEQUENCE----comment----", which is ambiguous for many reasons.
132 * XER decoder better handles not-yet-defined future extensions.
Lev Walkin2535a692005-07-02 21:42:40 +0000133
Lev Walkina127c3a2005-07-02 08:19:26 +00001340.9.15: 2005-July-02
Lev Walkin88693e82005-05-17 21:46:18 +0000135
Lev Walkin4d852802014-10-12 17:46:13 -0700136 * Compiler now checks 64-bit overflows in constraints range handling
137 code. No effect on the code produced by the compiler.
138 * Compiler support for tagged and marked parametrized members.
139 * Empty tags to element map avoided.
140 * Compiled code GCC 4.x compatibility.
Lev Walkin88693e82005-05-17 21:46:18 +0000141
Lev Walkin4d852802014-10-12 17:46:13 -07001420.9.14: 2005-Apr-29
Lev Walkin8b2f0c92005-04-29 18:55:12 +0000143
Lev Walkin4d852802014-10-12 17:46:13 -0700144 * Fixed check-70.-fnative-integers.c test (it was failing
145 when no test directory was found).
Lev Walkin8b2f0c92005-04-29 18:55:12 +0000146
Lev Walkin4d852802014-10-12 17:46:13 -07001470.9.13: 2005-Apr-24
Lev Walkincbf5a7e2005-03-10 18:53:33 +0000148
Lev Walkin4d852802014-10-12 17:46:13 -0700149 * Added extra const qualifiers into the support code.
150 * More RFC variations supported in crfc2asn1.pl.
151 * Refined string values compatibility. (Test cases 77, 78).
152 * Support for ContainedSubtype constraints. (Test case 16).
153 * Parsing support for CONSTRAINED BY. (Test case 79).
154 * Support for CharsDefn (Quadruple and Tuple, most used in
155 ASN1-CHARACTER-MODULE) (Test case 80).
156 * Pretty-printing support for WITH COMPONENT[S]. (Test case 82).
157 * Streamed OCTET STRING decoding of large values: fixed allocation
158 problem introduced in 0.9.9. (Severity: high; Security impact: medium)
159 Reported by Yann Grossel <olrick@users.sourceforge.net>.
160 * Fixed BASIC-XER encoding of REAL numbers.
Lev Walkincbf5a7e2005-03-10 18:53:33 +0000161
Lev Walkin4d852802014-10-12 17:46:13 -07001620.9.12: 2005-Mar-10
Lev Walkine8318b82005-03-06 09:29:03 +0000163
Lev Walkin4d852802014-10-12 17:46:13 -0700164 * Fixed a name clash in produced constraint checking code.
165 * #includes are now in single quotes (to solve a name
166 clash with system's <time.h> on a Win32 system).
167 * Small refinement of XML DTD generation (`asn1c -X`).
168 * Relaxed XER processing rules to skip extra whitespace
169 in some more places. It also skips XML comments (although
170 XML comments in XER are prohibited by X.693, #8.2.1).
171 (Test case 70) (Severity: medium; Security impact: none)
172 Reported by <Dominique.Nerriec@alcatel.fr>.
173 * Constraints on primitive types being defined are now supported.
174 (Test case 74) (Severity: low; Security impact: none)
175 * XMLValueList generation fixed for CHOICE type.
176 (Severity: medium; Security impact: none)
177 * Added the GSM TAP3 decoder into ./examples/sample.source.TAP3
Lev Walkine8318b82005-03-06 09:29:03 +0000178
Lev Walkin4d852802014-10-12 17:46:13 -07001790.9.11: 2005-Mar-04
Lev Walkin87da8262005-03-03 21:29:10 +0000180
Lev Walkin4d852802014-10-12 17:46:13 -0700181 * Released -fcompound-names to fix the name clashes in the code
182 produced by the asn1c.
183 * Released -fno-include-deps to avoid #including non-critical
184 external dependencies.
185 * Compiler is taught to produce compilable code for yet another class
186 of circular ASN.1 type references.
187 * X.693:8.3.4 prohibits anything but SignedNumber; fixed XER codec.
188 * Fixed ENUMERATED identifier to value conversion in XER.
189 Reported by <jacque.celaire@caramail.com>.
190 * If the compiled file contents are the same as in already existing
191 file (left from previous compilation), the old file is retained.
192 This prevents thrashing `make` dependencies if amount of changes in
193 the original ASN.1 module(s) is small.
Lev Walkin87da8262005-03-03 21:29:10 +0000194
Lev Walkin4d852802014-10-12 17:46:13 -07001950.9.10: 2005-Feb-25
Lev Walkin043af0d2005-02-24 21:07:35 +0000196
Lev Walkin4d852802014-10-12 17:46:13 -0700197 * Completed the XER XMLValueList encoding and decoding.
198 * Native integer type is now using "long".
199 * Fixed #1150856. Reported by <vvvy@users.sourceforge.net>.
200 * Some WIN32 portability fixes.
Lev Walkin043af0d2005-02-24 21:07:35 +0000201
Lev Walkin4d852802014-10-12 17:46:13 -07002020.9.9: 2005-Feb-22
Lev Walkind2388382005-01-17 15:27:47 +0000203
Lev Walkin4d852802014-10-12 17:46:13 -0700204 * First release of XER (XML) decoding implementation (somewhat
205 experimental).
206 * ANY allocation routine fixed.
207 Reported by <mikko.ahonen@elma.net>.
208 * Fixed tag parsing (tags like "[ 0 ]" were not supported).
209 * Compiler now checks for duplicate ASN.1 types across modules.
Lev Walkind2388382005-01-17 15:27:47 +0000210
Lev Walkin4d852802014-10-12 17:46:13 -07002110.9.8: 2005-Jan-17
Lev Walkin144db9b2004-10-12 23:26:53 +0000212
Lev Walkin4d852802014-10-12 17:46:13 -0700213 * [NEW PLATFORM] Compiled and tested on Linux @ alpha64 (LP64).
214 Some code needed to be fixed regarding int-long conversions
215 (mostly inside the test suite), and floating point handling
216 code needed to be restructured to handle signalling NAN and
217 other floating point exceptions quietly. Smooth transition!
218 * [NEW PLATFORM] Compiled and tested on Sun Solaris 9 @ sparc.
219 Improved includes/defines of/for system headers.
220 * -X command line option added to asn1c to generate XML DTD.
221 * Empty SEQUENCE and SET clauses are now allowed.
222 * Removed confusion between &xNN; and &#xNN; in enber and unber.
223 * Removed order dependency in DEFAULT references to ENUMERATED
224 identifiers (./tests/68-*-OK.asn1).
225 * ber_dec_rval_t renamed into asn_dec_rval_t: more generality.
226 * Extensions in CHOICE types are properly marked as non-pointers
227 (Test case 59) (Severity: medium; Security impact: medium)
228 Reported by <roman.pfender@sdm.de>.
229 * Tagged CHOICE type is now supported again.
230 (Test case 59) (Severity: low; Security impact: low)
231 Reported by <orlinkata@dir.bg>.
232 * Implemented der_encode_to_buffer() procedure.
Lev Walkin144db9b2004-10-12 23:26:53 +0000233
Lev Walkin4d852802014-10-12 17:46:13 -07002340.9.7.1: 2004-Oct-12
Lev Walkin144db9b2004-10-12 23:26:53 +0000235
Lev Walkin4d852802014-10-12 17:46:13 -0700236 * Fixed automatic tagging for extensions of compound types.
237 * Fixed ParametrizedReference parsing: {} are now recognized.
Lev Walkin144db9b2004-10-12 23:26:53 +0000238
Lev Walkin4d852802014-10-12 17:46:13 -07002390.9.7: 2004-Oct-11
Lev Walkin0ca7aec2004-10-02 00:12:11 +0000240
Lev Walkin4d852802014-10-12 17:46:13 -0700241 * Finished CXER implementation by adding SET and SET OF canonical
242 ordering support.
243 * Fixed unber(1) limits controlling logic.
244 * Removed C99'izm from the x509dump, now understood by older compilers.
245 * Enhanced UTF8String constraint validation, now it checks
246 for the minimal encoding length; API of UTF8String_length() changed.
247 * Fixed SEQUENCE dealing with premature termination of the
248 optionals-laden indefinite length structure. The code was previously
249 refusing to parse such structures.
250 * Fixed explicitly tagged ANY type encoding and decoding
251 (Severity: medium; Security impact: low).
252 * Fixed CHOICE code spin when indefinite length structures appear
253 in the extensions (Severity: medium; Security impact: medium).
254 Reported by <siden@ul-gsm.ru>.
255 * BIT STRING now stores the number of unused octets in a separate field.
Lev Walkin0ca7aec2004-10-02 00:12:11 +0000256
Lev Walkin4d852802014-10-12 17:46:13 -07002570.9.6: 2004-Sep-29
Lev Walkin33cded12004-09-19 19:40:52 +0000258
Lev Walkin4d852802014-10-12 17:46:13 -0700259 * Added several security firewalls: decoder's stack usage control
260 and the stricter checking of the TLV length.
261 * Implemented BASIC-XER encoding support (X.693).
262 * Implemented unber(1) and enber(1) for BER<->XML translation.
263 * Implemented CGI for online ASN.1 compilation (asn1c/webcgi).
264 * Implemented the sample X.509 decoder (./examples/sample.source.PKIX1).
265 * NamedType is now supported for SET OF/SEQUENCE OF type.
266 * Added -fno-constraints option to asn1c, which disabled generation of
267 ASN.1 subtype constraints checking code.
268 * Added ASN1C_ENVIRONMENT_VERSION and get_asn1c_environment_version().
269 * Fixed ANY type decoding (Severity: high; Security impact: low).
270 * Fixed BER decoder restartability problem with certain primitive
271 types (BOOLEAN, INTEGER, and REAL). The problem occured when the
272 encoding of such type is split between several bytes.
273 (Severity: high; Security impact: low)
274 * Support for cross-referencing type definitions (updated ./tests/43-*).
275 * Fixed pretty-printing of the REAL type. Added lots of test cases.
276 * Renamed asn1_* into asn_* in function and type names.
277 * Updated documentation.
Lev Walkin33cded12004-09-19 19:40:52 +0000278
Lev Walkin4d852802014-10-12 17:46:13 -07002790.9.5: 2004-Sep-17
Lev Walkinb4adfd32004-09-13 08:32:15 +0000280
Lev Walkin4d852802014-10-12 17:46:13 -0700281 * Fixed CER (common BER) decoder code. See check-25.c/VisibleString
282 case for details. X.690 specifies that inner structures in BER
283 encoding must be tagged by stripping off the outer tag for each
284 subsequent containment level. See also X.690: 8.21.5.4 and
285 the "Spouse" case in A.3.
286 (Severity: medium; Security impact: low)
287 * Added converters between any generic type and the ANY type.
288 * Parser fixed: Information Object Class fields may be taged.
289 * Parser fixed: tagged types inside SEQUENCE OF/SET OF support.
290 * Improved DEFAULT Value parsing and pretty-printing.
291 * Condition on distinct tags checker was incorrectly dealing with
292 tagged CHOICE types. Fixed. Modified tests/37-indirect-choice-OK.asn1
293 * Improved type name generation code ("struct foo" vs "foo_t").
294 * Fixed constraint checking code incorrectly dealing with imported
295 types with constraint values defined in other modules.
296 * Real REAL support! (Haven't tested denormals support yet!)
297 See skeletons/tests/check-REAL.c
Lev Walkinb4adfd32004-09-13 08:32:15 +0000298
Lev Walkin4d852802014-10-12 17:46:13 -07002990.9.4: 2004-Sep-10
Lev Walkin4a727052004-09-10 09:38:17 +0000300
Lev Walkin4d852802014-10-12 17:46:13 -0700301 * More support for recursive type definitions.
302 * Explicit support for ANY type decoding.
303 * Refactored tags processing code.
304 * Fixed constraints checking code: non-exploitable buffer overflow.
305 (Severity: medium; Security impact: low)
Lev Walkin4a727052004-09-10 09:38:17 +0000306
Lev Walkin4d852802014-10-12 17:46:13 -07003070.9.3: 2004-Sep-07
Lev Walkin8059bc42004-08-26 06:19:23 +0000308
Lev Walkin4d852802014-10-12 17:46:13 -0700309 * Extended constraints support in parametrized types.
310 * Better support for parametrization and constraints handling.
311 * Better handling of recursive type definitions.
312 * Added support for ANY type.
Lev Walkin8059bc42004-08-26 06:19:23 +0000313
Lev Walkin4d852802014-10-12 17:46:13 -07003140.9.2: 2004-Aug-24
Lev Walkin4ce78ca2004-08-25 01:34:11 +0000315
Lev Walkin4d852802014-10-12 17:46:13 -0700316 * More flexible subtype constraints handling, with relaxed
317 PER visibility rules for actual constraints checking code generator.
318 * Indirect references in constraints resolver code fixed.
319 * Avoided compilation warning on gcc 3.3.3 systems.
320 * Better ValueSet printing.
Lev Walkin4ce78ca2004-08-25 01:34:11 +0000321
Lev Walkin4d852802014-10-12 17:46:13 -07003220.9.1: 2004-Aug-23
Lev Walkinfa66e082004-08-24 05:25:57 +0000323
Lev Walkin4d852802014-10-12 17:46:13 -0700324 * Documentation updated: doc/asn1c-usage.pdf
325 * Fixed OBJECT IDENTIFIER human-readable printing.
326 Reported by <siden@ul-gsm.ru>.
Lev Walkinfa66e082004-08-24 05:25:57 +0000327
Lev Walkin4d852802014-10-12 17:46:13 -07003280.9: 2004-Aug-23
Lev Walkin3d0b5a32004-08-18 05:43:55 +0000329
Lev Walkin4d852802014-10-12 17:46:13 -0700330 * Reworked subtype constraints handling, aiming at PER-applicability.
331 * BOOLEAN and NULL are now implemented in terms of native int type.
332 * Compiler now links in only necessary skeleton files.
333 * -t option added to asn1c to ease manual BER/CER/DER decoding.
334 * Added support COMPONENTS OF construct.
335 * Numerous parser fixes and enhancements.
336 * Better constraint failure reporting.
Lev Walkin3d0b5a32004-08-18 05:43:55 +0000337
Lev Walkin4d852802014-10-12 17:46:13 -07003380.8.19: 2004-Aug-18
Lev Walkin1ef79852004-08-18 09:05:12 +0000339
Lev Walkin4d852802014-10-12 17:46:13 -0700340 * Fixed BER encoder (problem encoding large tag values)
341 (Severity: medium; Security impact: low)
Lev Walkin1ef79852004-08-18 09:05:12 +0000342
Lev Walkin4d852802014-10-12 17:46:13 -07003430.8.18: 2004-Aug-12
Lev Walkinb0892fe2004-08-13 12:39:17 +0000344
Lev Walkin4d852802014-10-12 17:46:13 -0700345 * Parser: fixed multiple IMPORTS problem (incorrect assertion).
346 * Parser: constraints extensibility parsing fix.
Lev Walkinb0892fe2004-08-13 12:39:17 +0000347
Lev Walkin4d852802014-10-12 17:46:13 -07003480.8.17: 2004-Aug-11
Lev Walkind8b940c2004-08-11 05:35:51 +0000349
Lev Walkin4d852802014-10-12 17:46:13 -0700350 * Improved compiler output: duplicate #includes eliminated.
351 * Win32 portability fixes.
352 * More compatibility with C++ or non-GCC compilers.
Lev Walkind8b940c2004-08-11 05:35:51 +0000353
Lev Walkin4d852802014-10-12 17:46:13 -07003540.8.16: 2004-Jul-22
Lev Walkinab42ef92004-07-22 12:19:42 +0000355
Lev Walkin4d852802014-10-12 17:46:13 -0700356 * Fixed application-level problem in SET OF/SEQUENCE OF array cleanup.
357 (Severity: medium; Security impact: low)
358 * Improved asn_GT2time() and added asn_time2{GT,UT}() functions.
359 * BIT STRING pretty-printing.
Lev Walkinab42ef92004-07-22 12:19:42 +0000360
Lev Walkin4d852802014-10-12 17:46:13 -07003610.8.15: 2004-Jul-20
Lev Walkin29a62262004-07-15 10:52:58 +0000362
Lev Walkin4d852802014-10-12 17:46:13 -0700363 * Fixed parser: memory leak in free_struct code for SET OF/SEQUENCE OF.
364 (Severity: high; Security impact: medium)
365 * Fixed parser: invalid memory reference in code constructing tags.
366 (Test case 48) (Severity: high; Security impact: medium)
367 When encoding data for certain ASN.1 specifications containing
368 explicit tags, the tag is always written incorrectly due to
369 incorrect memory reference. The encoding will almost always produce
370 unparseable data and might well reference unmapped region so program
371 would produce segmentation violation. Fortunately, memory is
372 read, not written, so remote exploits cannot execute arbitrary
373 code and triggering unmapped memory reference is highly unlikely
374 even it attacker knows the code (basically, the compiler should place
375 asn1_DEF_... right before the end of the mapped memory region, which
376 is extremely rare).
377 * Improved INTEGER type printing.
Lev Walkin29a62262004-07-15 10:52:58 +0000378
Lev Walkin4d852802014-10-12 17:46:13 -07003790.8.14: 2004-Jun-30
Lev Walkin35631482004-07-01 00:52:50 +0000380
Lev Walkin4d852802014-10-12 17:46:13 -0700381 * Fixed compiler: extensibility of CHOICE and SET type has not been
382 taken into account during table construction.
383 (Test case 47) (Severity: high; Security impact: low)
Lev Walkin35631482004-07-01 00:52:50 +0000384
Lev Walkin4d852802014-10-12 17:46:13 -07003850.8.13: 2004-Jun-29
Lev Walkind0d63f02004-06-28 21:22:20 +0000386
Lev Walkin4d852802014-10-12 17:46:13 -0700387 * Fixed compiler: the skip values for IMPLICIT tagging were broken
388 in some complex cases where one type is defined using another.
389 (Test case 46) (Severity: medium; Security impact: low).
390 * Added -fknown-extern-type command line parameter to asn1c.
391 * Removed -N command line flag and underlying functionality
392 to honor KISS principle.
Lev Walkind0d63f02004-06-28 21:22:20 +0000393
Lev Walkin4d852802014-10-12 17:46:13 -07003940.8.12: 2004-Jun-17
Lev Walkin715f45c2004-06-14 13:53:32 +0000395
Lev Walkin4d852802014-10-12 17:46:13 -0700396 * RELATIVE-OID and OBJECT IDENTIFIER encoders/decoders are not bound
397 anymore to an integer type of specific size (unsigned long). The
398 size of an integer must be provided explicitly.
399 See {OBJECT_IDENTIFIER|RELATIVE_OID}_{get|set}_arcs().
400 * SEQUENCE BER decoder fixed again for complex CHOICE case
401 (Test case 44) (Severity: medium; Security impact: low).
Lev Walkin715f45c2004-06-14 13:53:32 +0000402
Lev Walkin4d852802014-10-12 17:46:13 -07004030.8.11: 2004-Jun-05
Lev Walkin67c2aec2004-06-05 08:47:18 +0000404
Lev Walkin4d852802014-10-12 17:46:13 -0700405 * Enforced stricter conformance with C standards.
406 * SEQUENCE BER decoder is now equipped with the sorted map
407 in case of complex CHOICE descendants. Test case 44 created.
Lev Walkin67c2aec2004-06-05 08:47:18 +0000408
Lev Walkin4d852802014-10-12 17:46:13 -07004090.8.10: 2004-Jun-02
Lev Walkinf15320b2004-06-03 03:38:44 +0000410
Lev Walkin4d852802014-10-12 17:46:13 -0700411 * Added const qualifier where necessary.
412 * Changed position of outmost_tag fetcher within asn1_TYPE_descriptor_t
413 structure.
Lev Walkinf15320b2004-06-03 03:38:44 +0000414
Lev Walkin4d852802014-10-12 17:46:13 -07004150.8.9: 2004-May-26
Lev Walkinf15320b2004-06-03 03:38:44 +0000416
Lev Walkin4d852802014-10-12 17:46:13 -0700417 * Added *_{get|set}_arcs_*() functions for OBJECT IDENTIFIER
418 and RELATIVE-OID, together with test cases.
Lev Walkinf15320b2004-06-03 03:38:44 +0000419
Lev Walkin4d852802014-10-12 17:46:13 -07004200.8.8: 2004-May-09
Lev Walkinf15320b2004-06-03 03:38:44 +0000421
Lev Walkin4d852802014-10-12 17:46:13 -0700422 * Introduced subtype constraints support (incomplete!).
423 * Fixed compiler. If the last member of the SEQUENCE is OPTIONAL
424 and absent in the encoding, and the type is extensible (...) or
425 EXTENSIBILITY IMPLIED flag is set, then the structure could not
426 be correctly decoded. (Severity: high; Security impact: low).
427 * Compiler: fixed recursive ASN.1 types inclusion (Severity: low,
428 Security impact: none).
429 * Parser: IMPORTS/FROM fixes, now allowing multiple sections.
430 * NEW PLATFORM: Compiled and tested on MacOS X (@ PowerPC).
431 No major portability issues experienced.
Lev Walkinf15320b2004-06-03 03:38:44 +0000432
Lev Walkin4d852802014-10-12 17:46:13 -07004330.8.7: 2004-Apr-11 T-version-0-8-7
Lev Walkinf15320b2004-06-03 03:38:44 +0000434
Lev Walkin4d852802014-10-12 17:46:13 -0700435 * Fixed SEQUENCE BER decoder: if the last member of the SEQUENCE is
436 OPTIONAL and absent in the encoding, RC_FAIL was returned instead
437 of RC_OK (Severity: high; Security impact: low).
438 * Added test case to check the above problem.
439 * Added test case to check -fnative-integers mode.
Lev Walkinf15320b2004-06-03 03:38:44 +0000440
Lev Walkin4d852802014-10-12 17:46:13 -07004410.8.6: 2004-Apr-03 T-version-0-8-6
Lev Walkinf15320b2004-06-03 03:38:44 +0000442
Lev Walkin4d852802014-10-12 17:46:13 -0700443 * Fixed compiler output for embedded ASN.1 structures.
Lev Walkinf15320b2004-06-03 03:38:44 +0000444
Lev Walkin4d852802014-10-12 17:46:13 -07004450.8.5: 2004-Mar-28 T-version-0-8-5
Lev Walkinf15320b2004-06-03 03:38:44 +0000446
Lev Walkin4d852802014-10-12 17:46:13 -0700447 * Fixed ber_tlv_length() computation problem (Severity: high,
448 Security impact: none).
449 Reported by <vss@high.net.ru>
Lev Walkinf15320b2004-06-03 03:38:44 +0000450
Lev Walkin4d852802014-10-12 17:46:13 -07004510.8.4: 2004-Mar-22
Lev Walkinf15320b2004-06-03 03:38:44 +0000452
Lev Walkin4d852802014-10-12 17:46:13 -0700453 * Removed RC_ITAG enumeration element from BER decoder.
454 This return code did not have much practical value.
Lev Walkinf15320b2004-06-03 03:38:44 +0000455
Lev Walkin4d852802014-10-12 17:46:13 -07004560.8.3: 2004-Mar-14 T-version-0-8-3
Lev Walkinf15320b2004-06-03 03:38:44 +0000457
Lev Walkin4d852802014-10-12 17:46:13 -0700458 * Fixed SET::BER decoder: restart after reaching a buffer boundary
459 weas broken (Severity: high; Security impact: low).
460 * Fixed OCTET STRING::BER decoder: restart after reaching a buffer
461 boundary was broken (Severity: high; Security impact: low).
462 Reported by <vss@high.net.ru>
463 * Added test cases to check decoders restartability.
464 * Slightly more general INTEGER2long decoder.
465 * Allowed nested /* C-type */ comments, as per X.680:2002.
Lev Walkinf15320b2004-06-03 03:38:44 +0000466
Lev Walkin4d852802014-10-12 17:46:13 -07004670.8.2: 2004-Mar-01 T-version-0-8-2
Lev Walkinf15320b2004-06-03 03:38:44 +0000468
Lev Walkin4d852802014-10-12 17:46:13 -0700469 * Fixed SEQUENCE BER decoder: an OPTIONAL element was required, where
470 should not have been (Severity: major; Security impact: low).
471 * Fixed print_struct pointer inheritance.
472 * Added -fno-c99 and -funnamed-unions
Lev Walkinf15320b2004-06-03 03:38:44 +0000473
Lev Walkin4d852802014-10-12 17:46:13 -07004740.8.1: 2004-Feb-22
Lev Walkinf15320b2004-06-03 03:38:44 +0000475
Lev Walkin4d852802014-10-12 17:46:13 -0700476 * -R switch to asn1c: Omit support code, compile only the tables.
477 * Introduced NativeInteger pseudotype.
478 * Corrected the informal print_struct()'s output format.
Lev Walkinf15320b2004-06-03 03:38:44 +0000479
Lev Walkin4d852802014-10-12 17:46:13 -07004800.8.0: 2004-Feb-03 T-version-0-8-0
Lev Walkinf15320b2004-06-03 03:38:44 +0000481
Lev Walkin4d852802014-10-12 17:46:13 -0700482 * Some documentation is created (a .pdf and a short manual page).
483 * Last touches to the code.
Lev Walkinf15320b2004-06-03 03:38:44 +0000484
Lev Walkin4d852802014-10-12 17:46:13 -07004850.7.9: 2004-Feb-01 T-version-0-7-9
Lev Walkinf15320b2004-06-03 03:38:44 +0000486
Lev Walkin4d852802014-10-12 17:46:13 -0700487 * Human readable printing support.
488 * Support for implicit (standard) constraints.
Lev Walkinf15320b2004-06-03 03:38:44 +0000489
Lev Walkin4d852802014-10-12 17:46:13 -07004900.7.8: 2004-Jan-31
Lev Walkinf15320b2004-06-03 03:38:44 +0000491
Lev Walkin4d852802014-10-12 17:46:13 -0700492 * SET now rejects duplicate fields in the data stream.
Lev Walkinf15320b2004-06-03 03:38:44 +0000493
Lev Walkin4d852802014-10-12 17:46:13 -07004940.7.7: 2004-Jan-25
Lev Walkinf15320b2004-06-03 03:38:44 +0000495
Lev Walkin4d852802014-10-12 17:46:13 -0700496 * Added types: GeneralizedTime and UTCTime.
Lev Walkinf15320b2004-06-03 03:38:44 +0000497
Lev Walkin4d852802014-10-12 17:46:13 -07004980.7.6: 2004-Jan-24 T-version-0-7-6
Lev Walkinf15320b2004-06-03 03:38:44 +0000499
Lev Walkin4d852802014-10-12 17:46:13 -0700500 * DER encoding of a SET OF now involves dynamic sorting.
Lev Walkinf15320b2004-06-03 03:38:44 +0000501
Lev Walkin4d852802014-10-12 17:46:13 -07005020.7.5: 2004-Jan-24 T-version-0-7-5
Lev Walkinf15320b2004-06-03 03:38:44 +0000503
Lev Walkin4d852802014-10-12 17:46:13 -0700504 * DER encoding of a SET with untagged CHOICE
505 now involves dynamic sorting.
Lev Walkinf15320b2004-06-03 03:38:44 +0000506
Lev Walkin4d852802014-10-12 17:46:13 -07005070.7.0: 2004-Jan-19 T-version-0-7-0
Lev Walkinf15320b2004-06-03 03:38:44 +0000508
Lev Walkin4d852802014-10-12 17:46:13 -0700509 * A bunch of DER encoders is implemented.
Lev Walkinf15320b2004-06-03 03:38:44 +0000510
Lev Walkin4d852802014-10-12 17:46:13 -07005110.6.6: 2004-Jan-11
Lev Walkinf15320b2004-06-03 03:38:44 +0000512
Lev Walkin4d852802014-10-12 17:46:13 -0700513 * Implemented CHOICE decoder.
514 * Implemented destructors support.
Lev Walkinf15320b2004-06-03 03:38:44 +0000515
Lev Walkin4d852802014-10-12 17:46:13 -07005160.6.5: 2004-Jan-03
Lev Walkinf15320b2004-06-03 03:38:44 +0000517
Lev Walkin4d852802014-10-12 17:46:13 -0700518 * Implemented SET decoder.
519 * Implemented SET OF and SEQUENCE OF decoders.
Lev Walkinf15320b2004-06-03 03:38:44 +0000520
Lev Walkin4d852802014-10-12 17:46:13 -07005210.6.4: 2003-Dec-31
Lev Walkinf15320b2004-06-03 03:38:44 +0000522
Lev Walkin4d852802014-10-12 17:46:13 -0700523 * Implemented BOOLEAN, NULL, ENUMERATED decoders.
524 * Implemented OCTET STRING decoder.
525 * Implemented BIT STRING decoder.
Lev Walkinf15320b2004-06-03 03:38:44 +0000526
Lev Walkin4d852802014-10-12 17:46:13 -07005270.6: 2003-Dec-30
Lev Walkinf15320b2004-06-03 03:38:44 +0000528
Lev Walkin4d852802014-10-12 17:46:13 -0700529 * First decoding of a BER-encoded structure!
Lev Walkinf15320b2004-06-03 03:38:44 +0000530
Lev Walkin4d852802014-10-12 17:46:13 -07005310.5: 2003-Dec-28
Lev Walkinf15320b2004-06-03 03:38:44 +0000532
Lev Walkin4d852802014-10-12 17:46:13 -0700533 * Framework and most of the compiler backbone coding done.
Lev Walkinf15320b2004-06-03 03:38:44 +0000534
Lev Walkin4d852802014-10-12 17:46:13 -07005350.1: 2003-Nov-28
Lev Walkinf15320b2004-06-03 03:38:44 +0000536
Lev Walkin4d852802014-10-12 17:46:13 -0700537 * Programming started.
Lev Walkin6d67d912004-10-05 06:39:35 +0000538
539=== Bug importance disclosure terms ===
540
541SEVERITY.
542 This term applies to the frequence the particular construct is used
543 in the real world. The higher the frequency, the more chances of triggering
544 this bug.
Lev Walkin4d852802014-10-12 17:46:13 -0700545 low: The ASN.1 specifications which could trigger
546 this kind of bug are not widespread.
547 medium: The particular ASN.1 construct is used quite often,
548 so the chance of triggering an error is considerable.
549 high: This fix is considered urgent, or the particular ASN.1
550 construct triggering this bug is in wide use.
Lev Walkin6d67d912004-10-05 06:39:35 +0000551
552SECURITY IMPACT.
553 This term applies to the amount of potential damage a bug exploitation
554 could cause.
Lev Walkin4d852802014-10-12 17:46:13 -0700555 none: No malicious exploitation is possible.
556 low: The local exploitation is unlikely; the remote exploitation
557 is not possible.
558 medium: The remote exploitation is possible when a particular ASN.1
559 construct is being used. If possible, only hard failure, spin
560 or memory leak are the possible outcome: no shellcode
561 injection could possibly be carried by the attack.
562 high: The remote shellcode injection is possible, or the bug is
563 otherwise remotely exploitable for most specifications.
Lev Walkin6d67d912004-10-05 06:39:35 +0000564