blob: c7dbe46ae791aaadc57f4d0fe97709db732534df [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001
Lev Walkinb59d94c2005-03-04 09:01:15 +000020.9.11: 2005-Mar-04
Lev Walkin87da8262005-03-03 21:29:10 +00003
4 * X.693:8.3.4 prohibits anything but SignedNumber; fixed XER codec.
Lev Walkinb59d94c2005-03-04 09:01:15 +00005 * Released -fcompound-names to fix the name clashes in the code
6 produced by the asn1c.
7 * If the compiled file contents are the same as in already existing
8 file (left from previous compilation), the old file is retained.
9 This prevents thrashing `make` dependencies if amount of changes in
10 the original ASN.1 module(s) is small.
Lev Walkin87da8262005-03-03 21:29:10 +000011
Lev Walkine0b56e02005-02-25 12:10:27 +0000120.9.10: 2005-Feb-25
Lev Walkin043af0d2005-02-24 21:07:35 +000013
Lev Walkine0b56e02005-02-25 12:10:27 +000014 * Completed the XER XMLValueList encoding and decoding.
15 * Native integer type is now using "long".
16 * Fixed #1150856. Reported by <vvvy@users.sourceforge.net>.
Lev Walkin7512b7f2005-02-25 14:26:43 +000017 * Some WIN32 portability fixes.
Lev Walkin043af0d2005-02-24 21:07:35 +000018
Lev Walkinc36d2092005-02-22 08:14:24 +0000190.9.9: 2005-Feb-22
Lev Walkind2388382005-01-17 15:27:47 +000020
Lev Walkin438b74f2005-02-18 18:16:14 +000021 * First release of XER (XML) decoding implementation (somewhat
22 experimental).
Lev Walkind79acb22005-01-22 00:13:45 +000023 * ANY allocation routine fixed.
24 Reported by <mikko.ahonen@elma.net>.
Lev Walkin74ce4642005-01-23 09:51:53 +000025 * Fixed tag parsing (tags like "[ 0 ]" were not supported).
Lev Walkinc36d2092005-02-22 08:14:24 +000026 * Compiler now checks for duplicate ASN.1 types across modules.
Lev Walkind2388382005-01-17 15:27:47 +000027
Lev Walkin659c63b2005-01-17 11:40:49 +0000280.9.8: 2005-Jan-17
Lev Walkin144db9b2004-10-12 23:26:53 +000029
Lev Walkin30045c32004-10-26 10:44:18 +000030 * [NEW PLATFORM] Compiled and tested on Linux @ alpha64 (LP64).
31 Some code needed to be fixed regarding int-long conversions
32 (mostly inside the test suite), and floating point handling
33 code needed to be restructured to handle signalling NAN and
34 other floating point exceptions quietly. Smooth transition!
35 * [NEW PLATFORM] Compiled and tested on Sun Solaris 9 @ sparc.
36 Improved includes/defines of/for system headers.
Lev Walkinf7484512004-10-13 09:13:56 +000037 * -X command line option added to asn1c to generate XML DTD.
Lev Walkin144db9b2004-10-12 23:26:53 +000038 * Empty SEQUENCE and SET clauses are now allowed.
Lev Walkin451af472004-10-25 22:58:49 +000039 * Removed confusion between &xNN; and &#xNN; in enber and unber.
Lev Walkin3645c1c2004-10-31 00:11:50 +000040 * Removed order dependency in DEFAULT references to ENUMERATED
41 identifiers (./tests/68-*-OK.asn1).
Lev Walkin5766f522005-01-17 12:35:57 +000042 * ber_dec_rval_t renamed into asn_dec_rval_t: more generality.
Lev Walkin659c63b2005-01-17 11:40:49 +000043 * Extensions in CHOICE types are properly marked as non-pointers
44 (Test case 59) (Severity: medium, Secruity impact: medium)
45 Reported by <roman.pfender@sdm.de>.
Lev Walkin5766f522005-01-17 12:35:57 +000046 * Tagged CHOICE type is now supported again.
47 (Test case 59) (Severity: low, Security impact: low)
48 Reported by <orlinkata@dir.bg>.
Lev Walkinc4676a82004-11-16 09:46:00 +000049 * Implemented der_encode_to_buffer() procedure.
Lev Walkin144db9b2004-10-12 23:26:53 +000050
510.9.7.1: 2004-Oct-12
52
53 * Fixed automatic tagging for extensions of compound types.
54 * Fixed ParametrizedReference parsing: {} are now recognized.
55
Lev Walkin07f388c2004-10-11 11:43:08 +0000560.9.7: 2004-Oct-11
Lev Walkin0ca7aec2004-10-02 00:12:11 +000057
Lev Walkin642962a2005-02-24 22:37:07 +000058 * Finished CXER implementation by adding SET and SET OF canonical
59 ordering support.
Lev Walkinc2c9a222004-10-03 10:55:08 +000060 * Fixed unber(1) limits controlling logic.
Lev Walkin0ca7aec2004-10-02 00:12:11 +000061 * Removed C99'izm from the x509dump, now understood by older compilers.
Lev Walkin2eadb822004-10-02 15:55:20 +000062 * Enhanced UTF8String constraint validation, now it checks
63 for the minimal encoding length; API of UTF8String_length() changed.
Lev Walkin6d67d912004-10-05 06:39:35 +000064 * Fixed SEQUENCE dealing with premature termination of the
65 optionals-laden indefinite length structure. The code was previously
66 refusing to parse such structures.
Lev Walkin07f388c2004-10-11 11:43:08 +000067 * Fixed explicitly tagged ANY type encoding and decoding
68 (Severity: medium, Secruity impact: low).
Lev Walkin6d67d912004-10-05 06:39:35 +000069 * Fixed CHOICE code spin when indefinite length structures appear
70 in the extensions (Severity: medium, Security impact: medium).
71 Reported by <siden@ul-gsm.ru>.
Lev Walkinbbd93252004-10-12 05:57:23 +000072 * BIT STRING now stores the number of unused octets in a separate field.
Lev Walkin0ca7aec2004-10-02 00:12:11 +000073
Lev Walkin227589f2004-09-29 13:30:32 +0000740.9.6: 2004-Sep-29
Lev Walkin33cded12004-09-19 19:40:52 +000075
Lev Walkin227589f2004-09-29 13:30:32 +000076 * Added several security firewalls: decoder's stack usage control
77 and the stricter checking of the TLV length.
Lev Walkincae0a162004-09-22 16:06:52 +000078 * Implemented BASIC-XER encoding support (X.693).
Lev Walkinc0fde9b2004-09-24 21:06:19 +000079 * Implemented unber(1) and enber(1) for BER<->XML translation.
Lev Walkincae0a162004-09-22 16:06:52 +000080 * Implemented CGI for online ASN.1 compilation (asn1c/webcgi).
Lev Walkinc0fde9b2004-09-24 21:06:19 +000081 * Implemented the sample X.509 decoder (./examples/sample.source.PKIX1).
Lev Walkincae0a162004-09-22 16:06:52 +000082 * NamedType is now supported for SET OF/SEQUENCE OF type.
Lev Walkin78a463a2004-09-26 13:16:56 +000083 * Added -fno-constraints option to asn1c, which disabled generation of
84 ASN.1 subtype constraints checking code.
Lev Walkincae0a162004-09-22 16:06:52 +000085 * Added ASN1C_ENVIRONMENT_VERSION and get_asn1c_environment_version().
Lev Walkin3bd4efb2004-09-23 22:21:56 +000086 * Fixed ANY type decoding (Severity: high, Secruity impact: low).
Lev Walkinc0fde9b2004-09-24 21:06:19 +000087 * Fixed BER decoder restartability problem with certain primitive
88 types (BOOLEAN, INTEGER, and REAL). The problem occured when the
89 encoding of such type is split between several bytes.
90 (Severity: high, Security impact: low)
Lev Walkin227589f2004-09-29 13:30:32 +000091 * Support for cross-referencing type definitions (updated ./tests/43-*).
Lev Walkin36ee6902004-09-27 20:56:03 +000092 * Fixed pretty-printing of the REAL type. Added lots of test cases.
Lev Walkin227589f2004-09-29 13:30:32 +000093 * Renamed asn1_* into asn_* in function and type names.
Lev Walkinc0fde9b2004-09-24 21:06:19 +000094 * Updated documentation.
Lev Walkin33cded12004-09-19 19:40:52 +000095
Lev Walkin93e9fe32004-09-17 06:46:10 +0000960.9.5: 2004-Sep-17
Lev Walkinb4adfd32004-09-13 08:32:15 +000097
98 * Fixed CER (common BER) decoder code. See check-25.c/VisibleString
99 case for details. X.690 specifies that inner structures in BER
100 encoding must be tagged by stripping off the outer tag for each
101 subsequent containment level. See also X.690: 8.21.5.4 and
102 the "Spouse" case in A.3.
103 (Severity: medium, Security impact: low)
104 * Added converters between any generic type and the ANY type.
Lev Walkin5caf0382004-09-14 02:46:22 +0000105 * Parser fixed: Information Object Class fields may be taged.
106 * Parser fixed: tagged types inside SEQUENCE OF/SET OF support.
Lev Walkinf6ac3c82004-09-15 12:01:04 +0000107 * Improved DEFAULT Value parsing and pretty-printing.
108 * Condition on distinct tags checker was incorrectly dealing with
109 tagged CHOICE types. Fixed. Modified tests/37-indirect-choice-OK.asn1
Lev Walkin8dd0eed2004-09-17 06:32:12 +0000110 * Improved type name generation code ("struct foo" vs "foo_t").
Lev Walkinf6ac3c82004-09-15 12:01:04 +0000111 * Fixed constraint checking code incorrectly dealing with imported
112 types with constraint values defined in other modules.
Lev Walkinc78cbfb2004-09-14 12:47:45 +0000113 * Real REAL support! (Haven't tested denormals support yet!)
114 See skeletons/tests/check-REAL.c
Lev Walkinb4adfd32004-09-13 08:32:15 +0000115
Lev Walkin906654e2004-09-10 15:49:15 +00001160.9.4: 2004-Sep-10
Lev Walkin4a727052004-09-10 09:38:17 +0000117
118 * More support for recursive type definitions.
119 * Explicit support for ANY type decoding.
Lev Walkin906654e2004-09-10 15:49:15 +0000120 * Refactored tags processing code.
121 * Fixed constraints checking code: non-exploitable buffer overflow.
122 (Severity: medium, Security impact: low)
Lev Walkin4a727052004-09-10 09:38:17 +0000123
Lev Walkin6ce12322004-09-08 02:49:06 +00001240.9.3: 2004-Sep-07
Lev Walkin8059bc42004-08-26 06:19:23 +0000125
Lev Walkin7b1b9ab2004-09-05 10:41:39 +0000126 * Extended constraints support in parametrized types.
127 * Better support for parametrization and constraints handling.
Lev Walkin699ed4b2004-09-08 00:27:33 +0000128 * Better handling of recursive type definitions.
Lev Walkin9d2cd722004-09-04 05:02:31 +0000129 * Added support for ANY type.
Lev Walkin8059bc42004-08-26 06:19:23 +0000130
Lev Walkin4ce78ca2004-08-25 01:34:11 +00001310.9.2: 2004-Aug-24
132
Lev Walkin51c38232004-08-25 02:06:48 +0000133 * More flexible subtype constraints handling, with relaxed
134 PER visibility rules for actual constraints checking code generator.
Lev Walkin4ce78ca2004-08-25 01:34:11 +0000135 * Indirect references in constraints resolver code fixed.
136 * Avoided compilation warning on gcc 3.3.3 systems.
Lev Walkinc74ea222004-08-25 02:27:47 +0000137 * Better ValueSet printing.
Lev Walkin4ce78ca2004-08-25 01:34:11 +0000138
Lev Walkinfa66e082004-08-24 05:25:57 +00001390.9.1: 2004-Aug-23
140
141 * Documentation updated: doc/asn1c-usage.pdf
142 * Fixed OBJECT IDENTIFIER human-readable printing.
143 Reported by <siden@ul-gsm.ru>.
144
Lev Walkin09e85222004-08-23 09:24:40 +00001450.9: 2004-Aug-23
Lev Walkin3d0b5a32004-08-18 05:43:55 +0000146
147 * Reworked subtype constraints handling, aiming at PER-applicability.
Lev Walkin45b2fdf2004-08-19 13:35:01 +0000148 * BOOLEAN and NULL are now implemented in terms of native int type.
149 * Compiler now links in only necessary skeleton files.
Lev Walkin9bc36682004-08-20 13:38:25 +0000150 * -t option added to asn1c to ease manual BER/CER/DER decoding.
Lev Walkin08079b02004-08-22 03:25:24 +0000151 * Added support COMPONENTS OF construct.
152 * Numerous parser fixes and enhancements.
Lev Walkin16835b62004-08-22 13:47:59 +0000153 * Better constraint failure reporting.
Lev Walkin3d0b5a32004-08-18 05:43:55 +0000154
Lev Walkin1ef79852004-08-18 09:05:12 +00001550.8.19: 2004-Aug-18
156
157 * Fixed BER encoder (problem encoding large tag values)
158 (Severity: medium, Security impact: low)
159
Lev Walkinb0892fe2004-08-13 12:39:17 +00001600.8.18: 2004-Aug-12
161
162 * Parser: fixed multiple IMPORTS problem (incorrect assertion).
163 * Parser: constraints extensibility parsing fix.
164
Lev Walkin64399722004-08-11 07:17:22 +00001650.8.17: 2004-Aug-11
Lev Walkind8b940c2004-08-11 05:35:51 +0000166
167 * Improved compiler output: duplicate #includes eliminated.
Lev Walkin64399722004-08-11 07:17:22 +0000168 * Win32 portability fixes.
Lev Walkin3af51b42004-08-11 08:11:50 +0000169 * More compatibility with C++ or non-GCC compilers.
Lev Walkind8b940c2004-08-11 05:35:51 +0000170
Lev Walkinab42ef92004-07-22 12:19:42 +00001710.8.16: 2004-Jul-22
172
173 * Fixed application-level problem in SET OF/SEQUENCE OF array cleanup.
174 (Severity: medium, Security impact: low)
Lev Walkin99006362004-08-07 03:52:26 +0000175 * Improved asn_GT2time() and added asn_time2{GT,UT}() functions.
Lev Walkinf5dda9c2004-08-07 05:01:45 +0000176 * BIT STRING pretty-printing.
Lev Walkinab42ef92004-07-22 12:19:42 +0000177
Lev Walkinf7a6c6d2004-07-21 03:55:44 +00001780.8.15: 2004-Jul-20
Lev Walkin29a62262004-07-15 10:52:58 +0000179
180 * Fixed parser: memory leak in free_struct code for SET OF/SEQUENCE OF.
181 (Severity: high, Security impact: medium)
Lev Walkinc698eb82004-07-21 04:15:24 +0000182 * Fixed parser: invalid memory reference in code constructing tags.
Lev Walkinf7a6c6d2004-07-21 03:55:44 +0000183 (Test case 48) (Severity: high, Security impact: medium)
184 When encoding data for certain ASN.1 specifications containing
185 explicit tags, the tag is always written incorrectly due to
186 incorrect memory reference. The encoding will almost always produce
187 unparseable data and might well reference unmapped region so program
188 would produce segmentation violation. Fortunately, memory is
189 read, not written, so remote exploits cannot execute arbitrary
190 code and triggering unmapped memory reference is highly unlikely
191 even it attacker knows the code (basically, the compiler should place
192 asn1_DEF_... right before the end of the mapped memory region, which
193 is extremely rare).
Lev Walkindb13f512004-07-19 17:30:25 +0000194 * Improved INTEGER type printing.
Lev Walkin29a62262004-07-15 10:52:58 +0000195
Lev Walkin35631482004-07-01 00:52:50 +00001960.8.14: 2004-Jun-30
197
198 * Fixed compiler: extensibility of CHOICE and SET type has not been
199 taken into account during table construction.
200 (Test case 47) (Severity: high, Security impact: low)
201
Lev Walkind0d63f02004-06-28 21:22:20 +00002020.8.13: 2004-Jun-29
203
204 * Fixed compiler: the skip values for IMPLICIT tagging were broken
205 in some complex cases where one type is defined using another.
206 (Test case 46) (Severity: medium, Security impact: low).
207 * Added -fknown-extern-type command line parameter to asn1c.
208 * Removed -N command line flag and underlying functionality
209 to honor KISS principle.
210
Lev Walkine8826882004-06-18 00:03:54 +00002110.8.12: 2004-Jun-17
Lev Walkin715f45c2004-06-14 13:53:32 +0000212
Lev Walkine8826882004-06-18 00:03:54 +0000213 * RELATIVE-OID and OBJECT IDENTIFIER encoders/decoders are not bound
214 anymore to an integer type of specific size (unsigned long). The
215 size of an integer must be provided explicitly.
216 See {OBJECT_IDENTIFIER|RELATIVE_OID}_{get|set}_arcs().
Lev Walkin715f45c2004-06-14 13:53:32 +0000217 * SEQUENCE BER decoder fixed again for complex CHOICE case
Lev Walkin90c408c2004-06-14 13:54:21 +0000218 (Test case 44) (Severity: medium, Security impact: low).
Lev Walkin715f45c2004-06-14 13:53:32 +0000219
Lev Walkin67c2aec2004-06-05 08:47:18 +00002200.8.11: 2004-Jun-05
221
Lev Walkin28551732004-07-21 04:28:32 +0000222 * Enforced stricter conformance with C standards.
Lev Walkin715f45c2004-06-14 13:53:32 +0000223 * SEQUENCE BER decoder is now equipped with the sorted map
Lev Walkin886e22e2004-06-06 07:20:37 +0000224 in case of complex CHOICE descendants. Test case 44 created.
Lev Walkin67c2aec2004-06-05 08:47:18 +0000225
Lev Walkinf15320b2004-06-03 03:38:44 +00002260.8.10: 2004-Jun-02
227
228 * Added const qualifier where necessary.
229 * Changed position of outmost_tag fetcher within asn1_TYPE_descriptor_t
230 structure.
231
2320.8.9: 2004-May-26
233
234 * Added *_{get|set}_arcs_*() functions for OBJECT IDENTIFIER
235 and RELATIVE-OID, together with test cases.
236
2370.8.8: 2004-May-09
238
239 * Introduced subtype constraints support (incomplete!).
240 * Fixed compiler. If the last member of the SEQUENCE is OPTIONAL
241 and absent in the encoding, and the type is extensible (...) or
242 EXTENSIBILITY IMPLIED flag is set, then the structure could not
243 be correctly decoded. (Severity: high, Security impact: low).
244 * Compiler: fixed recursive ASN.1 types inclusion (Severity: low,
245 Security impact: none).
246 * Parser: IMPORTS/FROM fixes, now allowing multiple sections.
Lev Walkin30045c32004-10-26 10:44:18 +0000247 * NEW PLATFORM: Compiled and tested on MacOS X (@ PowerPC).
248 No major portability issues experienced.
Lev Walkinf15320b2004-06-03 03:38:44 +0000249
2500.8.7: 2004-Apr-11 T-version-0-8-7
251
252 * Fixed SEQUENCE BER decoder: if the last member of the SEQUENCE is
253 OPTIONAL and absent in the encoding, RC_FAIL was returned instead
254 of RC_OK (Severity: high, Security impact: low).
255 * Added test case to check the above problem.
256 * Added test case to check -fnative-integers mode.
257
2580.8.6: 2004-Apr-03 T-version-0-8-6
259
260 * Fixed compiler output for embedded ASN.1 structures.
261
2620.8.5: 2004-Mar-28 T-version-0-8-5
263
264 * Fixed ber_tlv_length() computation problem (Severity: blocker,
265 Security impact: none).
266 Reported by <vss@high.net.ru>
267
2680.8.4: 2004-Mar-22
269
270 * Removed RC_ITAG enumeration element from BER decoder.
271 This return code did not have much practical value.
272
2730.8.3: 2004-Mar-14 T-version-0-8-3
274
275 * Fixed SET::BER decoder: restart after reaching a buffer boundary
276 weas broken (Severity: blocker, Security impact: low).
277 * Fixed OCTET STRING::BER decoder: restart after reaching a buffer
278 boundary was broken (Severity: blocker, Security impact: low).
279 Reported by <vss@high.net.ru>
280 * Added test cases to check decoders restartability.
281 * Slightly more general INTEGER2long decoder.
282 * Allowed nested /* C-type */ comments, as per X.680:2002.
283
2840.8.2: 2004-Mar-01 T-version-0-8-2
285
286 * Fixed SEQUENCE BER decoder: an OPTIONAL element was required, where
287 should not have been (Severity: major; Security impact: low).
288 * Fixed print_struct pointer inheritance.
289 * Added -fno-c99 and -funnamed-unions
290
2910.8.1: 2004-Feb-22
292
293 * -R switch to asn1c: Omit support code, compile only the tables.
294 * Introduced NativeInteger pseudotype.
295 * Corrected the informal print_struct()'s output format.
296
2970.8.0: 2004-Feb-03 T-version-0-8-0
298
299 * Some documentation is created (a .pdf and a short manual page).
300 * Last touches to the code.
301
3020.7.9: 2004-Feb-01 T-version-0-7-9
303
304 * Human readable printing support.
305 * Support for implicit (standard) constraints.
306
3070.7.8: 2004-Jan-31
308
309 * SET now rejects duplicate fields in the data stream.
310
3110.7.7: 2004-Jan-25
312
313 * Added types: GeneralizedTime and UTCTime.
314
3150.7.6: 2004-Jan-24 T-version-0-7-6
316
317 * DER encoding of a SET OF now involves dynamic sorting.
318
3190.7.5: 2004-Jan-24 T-version-0-7-5
320
321 * DER encoding of a SET with untagged CHOICE
322 now involves dynamic sorting.
323
3240.7.0: 2004-Jan-19 T-version-0-7-0
325
326 * A bunch of DER encoders is implemented.
327
3280.6.6: 2004-Jan-11
329
330 * Implemented CHOICE decoder.
331 * Implemented destructors support.
332
3330.6.5: 2004-Jan-03
334
335 * Implemented SET decoder.
336 * Implemented SET OF and SEQUENCE OF decoders.
337
3380.6.4: 2003-Dec-31
339
340 * Implemented BOOLEAN, NULL, ENUMERATED decoders.
341 * Implemented OCTET STRING decoder.
342 * Implemented BIT STRING decoder.
343
3440.6: 2003-Dec-30
345
346 * First decoding of a BER-encoded structure!
347
3480.5: 2003-Dec-28
349
350 * Framework and most of the compiler backbone coding done.
351
3520.1: 2003-Nov-28
353
354 * Programming started.
Lev Walkin6d67d912004-10-05 06:39:35 +0000355
356=== Bug importance disclosure terms ===
357
358SEVERITY.
359 This term applies to the frequence the particular construct is used
360 in the real world. The higher the frequency, the more chances of triggering
361 this bug.
362 low: The ASN.1 specifications which could trigger
363 this kind of bug are not widespread.
364 medium: The particular ASN.1 construct is used quite often,
365 so the chance of triggering an error is considerable.
366 high: This fix is considered urgent, or the particular ASN.1
367 construct triggering this bug is in wide use.
368
369SECURITY IMPACT.
370 This term applies to the amount of potential damage a bug exploitation
371 could cause.
372 low: The local exploitation is unlikely; the remote exploitation
373 is impossible.
374 medium: The remote exploitation is possible when a particular ASN.1
375 construct is being used. If possible, only hard failure, spin
376 or memory leak are the possible outcome: no shellcode
377 injection could possibly be carried by the attack.
378 high: The remote shellcode injection is possible, or the bug is
379 otherwise remotely exploitable for most specifications.
380