blob: 2bdf002b32ac04404a4cbf94178128fdaa6636a1 [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
27 FIXES:
Lev Walkin2701dc22017-09-09 23:27:34 -070028 * CVE-2017-12966 verified not present.
Lev Walkindcae9ce2017-09-18 20:13:36 -070029 * Fix incomplete (failed) CHOICE XER decoding memory leak.
Lev Walkin20e22eb2017-09-18 20:18:30 -070030 (Severity: medium; Security impact: medium)
Lev Walkindcae9ce2017-09-18 20:13:36 -070031 * Fix REAL type overwrite conversion memory leak.
Lev Walkin20e22eb2017-09-18 20:18:30 -070032 (Severity: low; Security impact: medium)
Lev Walkin9d1b45f2017-10-01 17:04:48 -070033 * Fix UPER string decoding constrained only by lower bound > 0
34 (Severity: low; Security impact: none)
Lev Walkin5d947a82017-10-03 01:04:03 -070035 * Fix UPER decoding of large [bit-]strings of size a multiple of 16K
36 (Severity: low; Security impact: none)
Lev Walkin793982a2017-10-02 14:12:51 -070037 * Fix XER decoder crash on maliciously constructed ENUMERATED input.
38 (Severity: medium; Security impact: medium)
Lev Walkinfa9bb6d2017-03-26 03:48:43 -070039
Lev Walkin792b22b2017-03-26 03:29:55 -0700400.9.28: 2017-03-26
Lev Walkinc644d992015-09-14 13:45:36 -070041 * PER decoding: avoid memory leak on error. By github.com/simo5
Lev Walkin108d4f92014-10-12 18:58:14 -070042 * Constness patch #46 by Wim L <wiml@omnigroup.com> (41bbf1c..78d604f).
Lev Walkina1e5b9d2015-09-14 12:50:42 -070043 Build issues:
44 * Fixed generated file permissions introduced by earlier pull (issue/32).
Lev Walkin108d4f92014-10-12 18:58:14 -070045 * Win32/MinGW patch #31 by Frank Morgner (frankmorgner).
Lev Walkina1e5b9d2015-09-14 12:50:42 -070046 * Autoreconf fix patch by Dave Cridland (github.com/dwd)
47 * Fix autoreconf-2.69 failure by github.com/brchiu
Lev Walkinc644d992015-09-14 13:45:36 -070048 * Fix C99 warnings. Fix by Adrien Destugues (github.com/pulkomandy).
Lev Walkin7c691052015-09-14 13:50:14 -070049 * C89 compliance fix by Jaroslav Imrich (github.com/jariq).
Lev Walkin7c1dc052016-03-14 03:08:15 -070050 * C standard compliance fixes by Markus Elfring (github.com/elfring).
Lev Walkineace46c2014-09-17 02:18:44 -070051
Lev Walkinb0ed8182014-09-17 01:55:37 -0700520.9.27: 2014-Sep-17
Lev Walkin65907f02014-09-14 17:19:21 -070053 * Build structure fixes for portability.
Lev Walkin58ecc7b2014-09-17 00:32:03 -070054 * Disable long debug of ASN.1 operations during `make check` stage.
55 * Introduce --enable-ASN_DEBUG configure flag to emit long debug output.
Lev Walkin65907f02014-09-14 17:19:21 -070056
Lev Walkine0d321a2014-09-11 01:28:57 -0700570.9.26: 2014-Sep-11
Lev Walkin4d852802014-10-12 17:46:13 -070058 * Updated asn1c-usage.pdf.
59 * Made -fskeletons-copy a default option; removed cmdline option.
60 * Made -fnative-types a default option; removed cmdline option.
61 Added -fwide-types for backwards compatibility.
Lev Walkin4062b012013-10-11 14:29:38 -070062 * Add -fline-refs to avoid being unfriendly to version control systems.
Lev Walkin6169b8d2013-12-07 11:02:44 -080063 * Default constraint checking fix.
64 Thanks to Bartosz Marcinkiewicz <bma@megawatt.com.pl>
Lev Walkinaa61a0f2014-01-13 23:08:47 -080065 * Get rid of non-standard pointer arithmetics on void* pointer.
Lev Walkin6c527842014-02-09 04:34:54 -080066 * PER-encoding of integers wider than 32 bits.
Lev Walkine3e8de02013-03-19 17:16:00 -070067
Lev Walkin4d852802014-10-12 17:46:13 -0700680.9.24: 2013-Mar-16
Lev Walkin83f2a1c2010-03-10 23:09:29 +000069
Lev Walkin4d852802014-10-12 17:46:13 -070070 * GeneralizedTime fix for working with time offsets which are not
71 representable in whole hours. (Severity: low; Security impact: low)
72 Thanks to IP Fabrics, Inc.
73 * Added -fincludes-quoted to asn1c to generate #includes in "double"
74 instead of <angle> quotes.
75 * PER encoding correctness fix. (Severity: high; Security impact: low)
76 Reported by Grzegorz Aksamit.
77 * ENUMERATED extension values check relaxed. Reported by Gabriel Burca.
78 * Fixed decimal decoding of REAL values in -fnative-types mode
79 (Severity: medium; Security impact: medium)
80 * Removed webcgi subproject (introduced in 2004) as useless.
Lev Walkin83f2a1c2010-03-10 23:09:29 +000081
Lev Walkin4d852802014-10-12 17:46:13 -0700820.9.22: 2008-Nov-19
Lev Walkin66adab42006-09-23 02:52:12 +000083
Lev Walkin4d852802014-10-12 17:46:13 -070084 * Added -pdu=all and -pdu=<type> switches to asn1c.
85 * Added PER support for most known-multiplier string types:
86 IA5String, VisibleString, PrintableString, BMPString, UniversalString;
87 useful types: GeneralizedTime, UTCTime, ObjectDescriptor;
88 as well as REAL and OBJECT IDENTIFIER.
89 TODO: SET type.
90 * Added PER support for extensions in SEQUENCE.
91 * Multiple enhancements by Daniele Varrazzo <daniele.varrazzo@gmail.com>
92 * Fixed explicit tagging of an in-lined constructed type.
93 (Severity: low; Security impact: none).
94 * Memory leak fixed in SET OF / SEQUENCE OF when wrong encoding
95 is encountered. (Severity: medium; Security impact: low)
96 * Fixed extensibility handling of second SEQUENCE production.
97 (Severity: low; Security impact: none)
98 * Added DEFAULT handling for known multiplier string.
99 * Added a sample OMA ULP decoder (./examples/sample.source.ULP).
100 * Added full-width 32-bit integer encoding support in PER.
101 * Fixed 1-byte OOB write issue with non-standard and Windows
102 memory allocators (Severity: low; Security impact: medium).
103 Reported by Sheng Yu.
Lev Walkin66adab42006-09-23 02:52:12 +0000104
Lev Walkin4d852802014-10-12 17:46:13 -07001050.9.21: 2006-Sep-17
Lev Walkin6b3ff542006-03-06 14:51:00 +0000106
Lev Walkin4d852802014-10-12 17:46:13 -0700107 * skeletons/standard-modules directory is now used for standard types.
108 * Fixed class field access problem (Test case 98)
109 (Severity: medium; Security impact: none)
110 * Refactored Information Object Classes parsing.
111 * Refactored Parameterization support.
112 * [typedef enum foo {}] foo_e; is now e_foo, see #1287989
113 * Refactored ValueSetTypeAssignment parsing.
114 * asn-decoder-template.c renamed into converter-sample.c
115 * MEGACO (Media Gateway Control Protocol) decoder sample added.
116 * First release of PER encoder (does not encode SETs yet).
117 * Added a sample LDAP decoder (./examples/sample.source.LDAP3).
118 * Added a sample 3GPP RRC decoder (./examples/sample.source.RRC).
119 * Added a sample MEGACO (H.248.1) decoder (sample.source.MEGACO).
Lev Walkin5e155492006-03-06 11:25:53 +0000120
Lev Walkin4d852802014-10-12 17:46:13 -07001210.9.20: 2006-Mar-06
Lev Walkind1bfea62005-11-08 03:06:16 +0000122
Lev Walkin4d852802014-10-12 17:46:13 -0700123 * SET OF CHOICE, SEQUENCE OF CHOICE and a certain named S/O types
124 are represented differently in XER. THIS IS AN INCOMPATIBLE CHANGE.
125 (Test case 70) (Severity: low; Security impact: low)
126 * asn1c: Removed -ftypes88 command line option.
127 * Started PER implementation. Somewhat experimental!
Lev Walkind1bfea62005-11-08 03:06:16 +0000128
Lev Walkin4d852802014-10-12 17:46:13 -07001290.9.19: 2005-Oct-06
Lev Walkinda9a3b82005-08-16 17:00:21 +0000130
Lev Walkin4d852802014-10-12 17:46:13 -0700131 * A proper solution to circular references. No kludge flags
132 should be necessary anymore to produce reference-free code:
133 recursive dependencies are resolved automatically.
134 * Test cases 73 & 92 keep track of various circular references.
135 * Introduced compiler directives to allow finer control over the
136 generated code ("--<ASN1C...>--" in comments), (Test case 93).
137 * New feature for unber(1): -s <skip> bytes.
138 * Mandatory elements map for SET was not getting generated properly.
139 (Test case 94) (Severity: high; Security impact: low)
140 * asn1c: new command line option: -fskeletons-copy.
Lev Walkinda9a3b82005-08-16 17:00:21 +0000141
Lev Walkin4d852802014-10-12 17:46:13 -07001420.9.18: 2005-Aug-14
Lev Walkin58db6952005-08-12 05:13:35 +0000143
Lev Walkin4d852802014-10-12 17:46:13 -0700144 * The obsolete X.208 syntax is handled gracefully now (compound types'
145 member names are invented on the fly). (Test case 87).
146 * Generating enumeration tables for INTEGER types (Test case 88).
147 * Generating enumeration tables for BIT STRING types (Test case 89).
148 * Conditional INTEGER/ENUMERATED representation: long vs. INTEGER_t
149 type is chosen based on PER visible constraints (Test cases 90, 91).
150 * Union structures for CHOICE type are not anonymous anymore.
151 * Made unber(1) program more verbose: effective structure length is
152 now displayed as L="<n>" at the closing tag. (Test check-xxber.sh).
153 * Fixed unber(1)'s -1 switch for indefinite encoding length.
154 * New command line option for unber(1): -m to enable minimalistic mode.
Lev Walkin58db6952005-08-12 05:13:35 +0000155
Lev Walkin4d852802014-10-12 17:46:13 -07001560.9.17: 2005-Aug-07
Lev Walkine54e9422005-07-21 01:18:19 +0000157
Lev Walkin4d852802014-10-12 17:46:13 -0700158 * Tagging mode is implicitly IMPLICIT if AUTOMATIC TAGS is used, #30.6.
159 (Test cases 55, 86).
160 * Started to use extern "C" {} in skeleton headers.
161 * Introduced -finline-choice command line option to fix
162 yet another class of circular references.
Lev Walkine54e9422005-07-21 01:18:19 +0000163
Lev Walkin4d852802014-10-12 17:46:13 -07001640.9.16: 2005-July-04
Lev Walkin2535a692005-07-02 21:42:40 +0000165
Lev Walkin4d852802014-10-12 17:46:13 -0700166 * GeneralizedTime API now supports fractions of seconds.
167 Thanks to Bent Nicolaisen <BN@JAI.com> for support.
168 * ASN.1 parser has been tweaked to allow parsing something like
169 "SEQUENCE----comment----", which is ambiguous for many reasons.
170 * XER decoder better handles not-yet-defined future extensions.
Lev Walkin2535a692005-07-02 21:42:40 +0000171
Lev Walkina127c3a2005-07-02 08:19:26 +00001720.9.15: 2005-July-02
Lev Walkin88693e82005-05-17 21:46:18 +0000173
Lev Walkin4d852802014-10-12 17:46:13 -0700174 * Compiler now checks 64-bit overflows in constraints range handling
175 code. No effect on the code produced by the compiler.
176 * Compiler support for tagged and marked parametrized members.
177 * Empty tags to element map avoided.
178 * Compiled code GCC 4.x compatibility.
Lev Walkin88693e82005-05-17 21:46:18 +0000179
Lev Walkin4d852802014-10-12 17:46:13 -07001800.9.14: 2005-Apr-29
Lev Walkin8b2f0c92005-04-29 18:55:12 +0000181
Lev Walkin4d852802014-10-12 17:46:13 -0700182 * Fixed check-70.-fnative-integers.c test (it was failing
183 when no test directory was found).
Lev Walkin8b2f0c92005-04-29 18:55:12 +0000184
Lev Walkin4d852802014-10-12 17:46:13 -07001850.9.13: 2005-Apr-24
Lev Walkincbf5a7e2005-03-10 18:53:33 +0000186
Lev Walkin4d852802014-10-12 17:46:13 -0700187 * Added extra const qualifiers into the support code.
188 * More RFC variations supported in crfc2asn1.pl.
189 * Refined string values compatibility. (Test cases 77, 78).
190 * Support for ContainedSubtype constraints. (Test case 16).
191 * Parsing support for CONSTRAINED BY. (Test case 79).
192 * Support for CharsDefn (Quadruple and Tuple, most used in
193 ASN1-CHARACTER-MODULE) (Test case 80).
194 * Pretty-printing support for WITH COMPONENT[S]. (Test case 82).
195 * Streamed OCTET STRING decoding of large values: fixed allocation
196 problem introduced in 0.9.9. (Severity: high; Security impact: medium)
197 Reported by Yann Grossel <olrick@users.sourceforge.net>.
198 * Fixed BASIC-XER encoding of REAL numbers.
Lev Walkincbf5a7e2005-03-10 18:53:33 +0000199
Lev Walkin4d852802014-10-12 17:46:13 -07002000.9.12: 2005-Mar-10
Lev Walkine8318b82005-03-06 09:29:03 +0000201
Lev Walkin4d852802014-10-12 17:46:13 -0700202 * Fixed a name clash in produced constraint checking code.
203 * #includes are now in single quotes (to solve a name
204 clash with system's <time.h> on a Win32 system).
205 * Small refinement of XML DTD generation (`asn1c -X`).
206 * Relaxed XER processing rules to skip extra whitespace
207 in some more places. It also skips XML comments (although
208 XML comments in XER are prohibited by X.693, #8.2.1).
209 (Test case 70) (Severity: medium; Security impact: none)
210 Reported by <Dominique.Nerriec@alcatel.fr>.
211 * Constraints on primitive types being defined are now supported.
212 (Test case 74) (Severity: low; Security impact: none)
213 * XMLValueList generation fixed for CHOICE type.
214 (Severity: medium; Security impact: none)
215 * Added the GSM TAP3 decoder into ./examples/sample.source.TAP3
Lev Walkine8318b82005-03-06 09:29:03 +0000216
Lev Walkin4d852802014-10-12 17:46:13 -07002170.9.11: 2005-Mar-04
Lev Walkin87da8262005-03-03 21:29:10 +0000218
Lev Walkin4d852802014-10-12 17:46:13 -0700219 * Released -fcompound-names to fix the name clashes in the code
220 produced by the asn1c.
221 * Released -fno-include-deps to avoid #including non-critical
222 external dependencies.
223 * Compiler is taught to produce compilable code for yet another class
224 of circular ASN.1 type references.
225 * X.693:8.3.4 prohibits anything but SignedNumber; fixed XER codec.
226 * Fixed ENUMERATED identifier to value conversion in XER.
227 Reported by <jacque.celaire@caramail.com>.
228 * If the compiled file contents are the same as in already existing
229 file (left from previous compilation), the old file is retained.
230 This prevents thrashing `make` dependencies if amount of changes in
231 the original ASN.1 module(s) is small.
Lev Walkin87da8262005-03-03 21:29:10 +0000232
Lev Walkin4d852802014-10-12 17:46:13 -07002330.9.10: 2005-Feb-25
Lev Walkin043af0d2005-02-24 21:07:35 +0000234
Lev Walkin4d852802014-10-12 17:46:13 -0700235 * Completed the XER XMLValueList encoding and decoding.
236 * Native integer type is now using "long".
237 * Fixed #1150856. Reported by <vvvy@users.sourceforge.net>.
238 * Some WIN32 portability fixes.
Lev Walkin043af0d2005-02-24 21:07:35 +0000239
Lev Walkin4d852802014-10-12 17:46:13 -07002400.9.9: 2005-Feb-22
Lev Walkind2388382005-01-17 15:27:47 +0000241
Lev Walkin4d852802014-10-12 17:46:13 -0700242 * First release of XER (XML) decoding implementation (somewhat
243 experimental).
244 * ANY allocation routine fixed.
245 Reported by <mikko.ahonen@elma.net>.
246 * Fixed tag parsing (tags like "[ 0 ]" were not supported).
247 * Compiler now checks for duplicate ASN.1 types across modules.
Lev Walkind2388382005-01-17 15:27:47 +0000248
Lev Walkin4d852802014-10-12 17:46:13 -07002490.9.8: 2005-Jan-17
Lev Walkin144db9b2004-10-12 23:26:53 +0000250
Lev Walkin4d852802014-10-12 17:46:13 -0700251 * [NEW PLATFORM] Compiled and tested on Linux @ alpha64 (LP64).
252 Some code needed to be fixed regarding int-long conversions
253 (mostly inside the test suite), and floating point handling
254 code needed to be restructured to handle signalling NAN and
255 other floating point exceptions quietly. Smooth transition!
256 * [NEW PLATFORM] Compiled and tested on Sun Solaris 9 @ sparc.
257 Improved includes/defines of/for system headers.
258 * -X command line option added to asn1c to generate XML DTD.
259 * Empty SEQUENCE and SET clauses are now allowed.
260 * Removed confusion between &xNN; and &#xNN; in enber and unber.
261 * Removed order dependency in DEFAULT references to ENUMERATED
262 identifiers (./tests/68-*-OK.asn1).
263 * ber_dec_rval_t renamed into asn_dec_rval_t: more generality.
264 * Extensions in CHOICE types are properly marked as non-pointers
265 (Test case 59) (Severity: medium; Security impact: medium)
266 Reported by <roman.pfender@sdm.de>.
267 * Tagged CHOICE type is now supported again.
268 (Test case 59) (Severity: low; Security impact: low)
269 Reported by <orlinkata@dir.bg>.
270 * Implemented der_encode_to_buffer() procedure.
Lev Walkin144db9b2004-10-12 23:26:53 +0000271
Lev Walkin4d852802014-10-12 17:46:13 -07002720.9.7.1: 2004-Oct-12
Lev Walkin144db9b2004-10-12 23:26:53 +0000273
Lev Walkin4d852802014-10-12 17:46:13 -0700274 * Fixed automatic tagging for extensions of compound types.
275 * Fixed ParametrizedReference parsing: {} are now recognized.
Lev Walkin144db9b2004-10-12 23:26:53 +0000276
Lev Walkin4d852802014-10-12 17:46:13 -07002770.9.7: 2004-Oct-11
Lev Walkin0ca7aec2004-10-02 00:12:11 +0000278
Lev Walkin4d852802014-10-12 17:46:13 -0700279 * Finished CXER implementation by adding SET and SET OF canonical
280 ordering support.
281 * Fixed unber(1) limits controlling logic.
282 * Removed C99'izm from the x509dump, now understood by older compilers.
283 * Enhanced UTF8String constraint validation, now it checks
284 for the minimal encoding length; API of UTF8String_length() changed.
285 * Fixed SEQUENCE dealing with premature termination of the
286 optionals-laden indefinite length structure. The code was previously
287 refusing to parse such structures.
288 * Fixed explicitly tagged ANY type encoding and decoding
289 (Severity: medium; Security impact: low).
290 * Fixed CHOICE code spin when indefinite length structures appear
291 in the extensions (Severity: medium; Security impact: medium).
292 Reported by <siden@ul-gsm.ru>.
293 * BIT STRING now stores the number of unused octets in a separate field.
Lev Walkin0ca7aec2004-10-02 00:12:11 +0000294
Lev Walkin4d852802014-10-12 17:46:13 -07002950.9.6: 2004-Sep-29
Lev Walkin33cded12004-09-19 19:40:52 +0000296
Lev Walkin4d852802014-10-12 17:46:13 -0700297 * Added several security firewalls: decoder's stack usage control
298 and the stricter checking of the TLV length.
299 * Implemented BASIC-XER encoding support (X.693).
300 * Implemented unber(1) and enber(1) for BER<->XML translation.
301 * Implemented CGI for online ASN.1 compilation (asn1c/webcgi).
302 * Implemented the sample X.509 decoder (./examples/sample.source.PKIX1).
303 * NamedType is now supported for SET OF/SEQUENCE OF type.
304 * Added -fno-constraints option to asn1c, which disabled generation of
305 ASN.1 subtype constraints checking code.
306 * Added ASN1C_ENVIRONMENT_VERSION and get_asn1c_environment_version().
307 * Fixed ANY type decoding (Severity: high; Security impact: low).
308 * Fixed BER decoder restartability problem with certain primitive
309 types (BOOLEAN, INTEGER, and REAL). The problem occured when the
310 encoding of such type is split between several bytes.
311 (Severity: high; Security impact: low)
312 * Support for cross-referencing type definitions (updated ./tests/43-*).
313 * Fixed pretty-printing of the REAL type. Added lots of test cases.
314 * Renamed asn1_* into asn_* in function and type names.
315 * Updated documentation.
Lev Walkin33cded12004-09-19 19:40:52 +0000316
Lev Walkin4d852802014-10-12 17:46:13 -07003170.9.5: 2004-Sep-17
Lev Walkinb4adfd32004-09-13 08:32:15 +0000318
Lev Walkin4d852802014-10-12 17:46:13 -0700319 * Fixed CER (common BER) decoder code. See check-25.c/VisibleString
320 case for details. X.690 specifies that inner structures in BER
321 encoding must be tagged by stripping off the outer tag for each
322 subsequent containment level. See also X.690: 8.21.5.4 and
323 the "Spouse" case in A.3.
324 (Severity: medium; Security impact: low)
325 * Added converters between any generic type and the ANY type.
326 * Parser fixed: Information Object Class fields may be taged.
327 * Parser fixed: tagged types inside SEQUENCE OF/SET OF support.
328 * Improved DEFAULT Value parsing and pretty-printing.
329 * Condition on distinct tags checker was incorrectly dealing with
330 tagged CHOICE types. Fixed. Modified tests/37-indirect-choice-OK.asn1
331 * Improved type name generation code ("struct foo" vs "foo_t").
332 * Fixed constraint checking code incorrectly dealing with imported
333 types with constraint values defined in other modules.
334 * Real REAL support! (Haven't tested denormals support yet!)
335 See skeletons/tests/check-REAL.c
Lev Walkinb4adfd32004-09-13 08:32:15 +0000336
Lev Walkin4d852802014-10-12 17:46:13 -07003370.9.4: 2004-Sep-10
Lev Walkin4a727052004-09-10 09:38:17 +0000338
Lev Walkin4d852802014-10-12 17:46:13 -0700339 * More support for recursive type definitions.
340 * Explicit support for ANY type decoding.
341 * Refactored tags processing code.
342 * Fixed constraints checking code: non-exploitable buffer overflow.
343 (Severity: medium; Security impact: low)
Lev Walkin4a727052004-09-10 09:38:17 +0000344
Lev Walkin4d852802014-10-12 17:46:13 -07003450.9.3: 2004-Sep-07
Lev Walkin8059bc42004-08-26 06:19:23 +0000346
Lev Walkin4d852802014-10-12 17:46:13 -0700347 * Extended constraints support in parametrized types.
348 * Better support for parametrization and constraints handling.
349 * Better handling of recursive type definitions.
350 * Added support for ANY type.
Lev Walkin8059bc42004-08-26 06:19:23 +0000351
Lev Walkin4d852802014-10-12 17:46:13 -07003520.9.2: 2004-Aug-24
Lev Walkin4ce78ca2004-08-25 01:34:11 +0000353
Lev Walkin4d852802014-10-12 17:46:13 -0700354 * More flexible subtype constraints handling, with relaxed
355 PER visibility rules for actual constraints checking code generator.
356 * Indirect references in constraints resolver code fixed.
357 * Avoided compilation warning on gcc 3.3.3 systems.
358 * Better ValueSet printing.
Lev Walkin4ce78ca2004-08-25 01:34:11 +0000359
Lev Walkin4d852802014-10-12 17:46:13 -07003600.9.1: 2004-Aug-23
Lev Walkinfa66e082004-08-24 05:25:57 +0000361
Lev Walkin4d852802014-10-12 17:46:13 -0700362 * Documentation updated: doc/asn1c-usage.pdf
363 * Fixed OBJECT IDENTIFIER human-readable printing.
364 Reported by <siden@ul-gsm.ru>.
Lev Walkinfa66e082004-08-24 05:25:57 +0000365
Lev Walkin4d852802014-10-12 17:46:13 -07003660.9: 2004-Aug-23
Lev Walkin3d0b5a32004-08-18 05:43:55 +0000367
Lev Walkin4d852802014-10-12 17:46:13 -0700368 * Reworked subtype constraints handling, aiming at PER-applicability.
369 * BOOLEAN and NULL are now implemented in terms of native int type.
370 * Compiler now links in only necessary skeleton files.
371 * -t option added to asn1c to ease manual BER/CER/DER decoding.
372 * Added support COMPONENTS OF construct.
373 * Numerous parser fixes and enhancements.
374 * Better constraint failure reporting.
Lev Walkin3d0b5a32004-08-18 05:43:55 +0000375
Lev Walkin4d852802014-10-12 17:46:13 -07003760.8.19: 2004-Aug-18
Lev Walkin1ef79852004-08-18 09:05:12 +0000377
Lev Walkin4d852802014-10-12 17:46:13 -0700378 * Fixed BER encoder (problem encoding large tag values)
379 (Severity: medium; Security impact: low)
Lev Walkin1ef79852004-08-18 09:05:12 +0000380
Lev Walkin4d852802014-10-12 17:46:13 -07003810.8.18: 2004-Aug-12
Lev Walkinb0892fe2004-08-13 12:39:17 +0000382
Lev Walkin4d852802014-10-12 17:46:13 -0700383 * Parser: fixed multiple IMPORTS problem (incorrect assertion).
384 * Parser: constraints extensibility parsing fix.
Lev Walkinb0892fe2004-08-13 12:39:17 +0000385
Lev Walkin4d852802014-10-12 17:46:13 -07003860.8.17: 2004-Aug-11
Lev Walkind8b940c2004-08-11 05:35:51 +0000387
Lev Walkin4d852802014-10-12 17:46:13 -0700388 * Improved compiler output: duplicate #includes eliminated.
389 * Win32 portability fixes.
390 * More compatibility with C++ or non-GCC compilers.
Lev Walkind8b940c2004-08-11 05:35:51 +0000391
Lev Walkin4d852802014-10-12 17:46:13 -07003920.8.16: 2004-Jul-22
Lev Walkinab42ef92004-07-22 12:19:42 +0000393
Lev Walkin4d852802014-10-12 17:46:13 -0700394 * Fixed application-level problem in SET OF/SEQUENCE OF array cleanup.
395 (Severity: medium; Security impact: low)
396 * Improved asn_GT2time() and added asn_time2{GT,UT}() functions.
397 * BIT STRING pretty-printing.
Lev Walkinab42ef92004-07-22 12:19:42 +0000398
Lev Walkin4d852802014-10-12 17:46:13 -07003990.8.15: 2004-Jul-20
Lev Walkin29a62262004-07-15 10:52:58 +0000400
Lev Walkin4d852802014-10-12 17:46:13 -0700401 * Fixed parser: memory leak in free_struct code for SET OF/SEQUENCE OF.
402 (Severity: high; Security impact: medium)
403 * Fixed parser: invalid memory reference in code constructing tags.
404 (Test case 48) (Severity: high; Security impact: medium)
405 When encoding data for certain ASN.1 specifications containing
406 explicit tags, the tag is always written incorrectly due to
407 incorrect memory reference. The encoding will almost always produce
408 unparseable data and might well reference unmapped region so program
409 would produce segmentation violation. Fortunately, memory is
410 read, not written, so remote exploits cannot execute arbitrary
411 code and triggering unmapped memory reference is highly unlikely
412 even it attacker knows the code (basically, the compiler should place
413 asn1_DEF_... right before the end of the mapped memory region, which
414 is extremely rare).
415 * Improved INTEGER type printing.
Lev Walkin29a62262004-07-15 10:52:58 +0000416
Lev Walkin4d852802014-10-12 17:46:13 -07004170.8.14: 2004-Jun-30
Lev Walkin35631482004-07-01 00:52:50 +0000418
Lev Walkin4d852802014-10-12 17:46:13 -0700419 * Fixed compiler: extensibility of CHOICE and SET type has not been
420 taken into account during table construction.
421 (Test case 47) (Severity: high; Security impact: low)
Lev Walkin35631482004-07-01 00:52:50 +0000422
Lev Walkin4d852802014-10-12 17:46:13 -07004230.8.13: 2004-Jun-29
Lev Walkind0d63f02004-06-28 21:22:20 +0000424
Lev Walkin4d852802014-10-12 17:46:13 -0700425 * Fixed compiler: the skip values for IMPLICIT tagging were broken
426 in some complex cases where one type is defined using another.
427 (Test case 46) (Severity: medium; Security impact: low).
428 * Added -fknown-extern-type command line parameter to asn1c.
429 * Removed -N command line flag and underlying functionality
430 to honor KISS principle.
Lev Walkind0d63f02004-06-28 21:22:20 +0000431
Lev Walkin4d852802014-10-12 17:46:13 -07004320.8.12: 2004-Jun-17
Lev Walkin715f45c2004-06-14 13:53:32 +0000433
Lev Walkin4d852802014-10-12 17:46:13 -0700434 * RELATIVE-OID and OBJECT IDENTIFIER encoders/decoders are not bound
435 anymore to an integer type of specific size (unsigned long). The
436 size of an integer must be provided explicitly.
437 See {OBJECT_IDENTIFIER|RELATIVE_OID}_{get|set}_arcs().
438 * SEQUENCE BER decoder fixed again for complex CHOICE case
439 (Test case 44) (Severity: medium; Security impact: low).
Lev Walkin715f45c2004-06-14 13:53:32 +0000440
Lev Walkin4d852802014-10-12 17:46:13 -07004410.8.11: 2004-Jun-05
Lev Walkin67c2aec2004-06-05 08:47:18 +0000442
Lev Walkin4d852802014-10-12 17:46:13 -0700443 * Enforced stricter conformance with C standards.
444 * SEQUENCE BER decoder is now equipped with the sorted map
445 in case of complex CHOICE descendants. Test case 44 created.
Lev Walkin67c2aec2004-06-05 08:47:18 +0000446
Lev Walkin4d852802014-10-12 17:46:13 -07004470.8.10: 2004-Jun-02
Lev Walkinf15320b2004-06-03 03:38:44 +0000448
Lev Walkin4d852802014-10-12 17:46:13 -0700449 * Added const qualifier where necessary.
450 * Changed position of outmost_tag fetcher within asn1_TYPE_descriptor_t
451 structure.
Lev Walkinf15320b2004-06-03 03:38:44 +0000452
Lev Walkin4d852802014-10-12 17:46:13 -07004530.8.9: 2004-May-26
Lev Walkinf15320b2004-06-03 03:38:44 +0000454
Lev Walkin4d852802014-10-12 17:46:13 -0700455 * Added *_{get|set}_arcs_*() functions for OBJECT IDENTIFIER
456 and RELATIVE-OID, together with test cases.
Lev Walkinf15320b2004-06-03 03:38:44 +0000457
Lev Walkin4d852802014-10-12 17:46:13 -07004580.8.8: 2004-May-09
Lev Walkinf15320b2004-06-03 03:38:44 +0000459
Lev Walkin4d852802014-10-12 17:46:13 -0700460 * Introduced subtype constraints support (incomplete!).
461 * Fixed compiler. If the last member of the SEQUENCE is OPTIONAL
462 and absent in the encoding, and the type is extensible (...) or
463 EXTENSIBILITY IMPLIED flag is set, then the structure could not
464 be correctly decoded. (Severity: high; Security impact: low).
465 * Compiler: fixed recursive ASN.1 types inclusion (Severity: low,
466 Security impact: none).
467 * Parser: IMPORTS/FROM fixes, now allowing multiple sections.
468 * NEW PLATFORM: Compiled and tested on MacOS X (@ PowerPC).
469 No major portability issues experienced.
Lev Walkinf15320b2004-06-03 03:38:44 +0000470
Lev Walkin4d852802014-10-12 17:46:13 -07004710.8.7: 2004-Apr-11 T-version-0-8-7
Lev Walkinf15320b2004-06-03 03:38:44 +0000472
Lev Walkin4d852802014-10-12 17:46:13 -0700473 * Fixed SEQUENCE BER decoder: if the last member of the SEQUENCE is
474 OPTIONAL and absent in the encoding, RC_FAIL was returned instead
475 of RC_OK (Severity: high; Security impact: low).
476 * Added test case to check the above problem.
477 * Added test case to check -fnative-integers mode.
Lev Walkinf15320b2004-06-03 03:38:44 +0000478
Lev Walkin4d852802014-10-12 17:46:13 -07004790.8.6: 2004-Apr-03 T-version-0-8-6
Lev Walkinf15320b2004-06-03 03:38:44 +0000480
Lev Walkin4d852802014-10-12 17:46:13 -0700481 * Fixed compiler output for embedded ASN.1 structures.
Lev Walkinf15320b2004-06-03 03:38:44 +0000482
Lev Walkin4d852802014-10-12 17:46:13 -07004830.8.5: 2004-Mar-28 T-version-0-8-5
Lev Walkinf15320b2004-06-03 03:38:44 +0000484
Lev Walkin4d852802014-10-12 17:46:13 -0700485 * Fixed ber_tlv_length() computation problem (Severity: high,
486 Security impact: none).
487 Reported by <vss@high.net.ru>
Lev Walkinf15320b2004-06-03 03:38:44 +0000488
Lev Walkin4d852802014-10-12 17:46:13 -07004890.8.4: 2004-Mar-22
Lev Walkinf15320b2004-06-03 03:38:44 +0000490
Lev Walkin4d852802014-10-12 17:46:13 -0700491 * Removed RC_ITAG enumeration element from BER decoder.
492 This return code did not have much practical value.
Lev Walkinf15320b2004-06-03 03:38:44 +0000493
Lev Walkin4d852802014-10-12 17:46:13 -07004940.8.3: 2004-Mar-14 T-version-0-8-3
Lev Walkinf15320b2004-06-03 03:38:44 +0000495
Lev Walkin4d852802014-10-12 17:46:13 -0700496 * Fixed SET::BER decoder: restart after reaching a buffer boundary
497 weas broken (Severity: high; Security impact: low).
498 * Fixed OCTET STRING::BER decoder: restart after reaching a buffer
499 boundary was broken (Severity: high; Security impact: low).
500 Reported by <vss@high.net.ru>
501 * Added test cases to check decoders restartability.
502 * Slightly more general INTEGER2long decoder.
503 * Allowed nested /* C-type */ comments, as per X.680:2002.
Lev Walkinf15320b2004-06-03 03:38:44 +0000504
Lev Walkin4d852802014-10-12 17:46:13 -07005050.8.2: 2004-Mar-01 T-version-0-8-2
Lev Walkinf15320b2004-06-03 03:38:44 +0000506
Lev Walkin4d852802014-10-12 17:46:13 -0700507 * Fixed SEQUENCE BER decoder: an OPTIONAL element was required, where
508 should not have been (Severity: major; Security impact: low).
509 * Fixed print_struct pointer inheritance.
510 * Added -fno-c99 and -funnamed-unions
Lev Walkinf15320b2004-06-03 03:38:44 +0000511
Lev Walkin4d852802014-10-12 17:46:13 -07005120.8.1: 2004-Feb-22
Lev Walkinf15320b2004-06-03 03:38:44 +0000513
Lev Walkin4d852802014-10-12 17:46:13 -0700514 * -R switch to asn1c: Omit support code, compile only the tables.
515 * Introduced NativeInteger pseudotype.
516 * Corrected the informal print_struct()'s output format.
Lev Walkinf15320b2004-06-03 03:38:44 +0000517
Lev Walkin4d852802014-10-12 17:46:13 -07005180.8.0: 2004-Feb-03 T-version-0-8-0
Lev Walkinf15320b2004-06-03 03:38:44 +0000519
Lev Walkin4d852802014-10-12 17:46:13 -0700520 * Some documentation is created (a .pdf and a short manual page).
521 * Last touches to the code.
Lev Walkinf15320b2004-06-03 03:38:44 +0000522
Lev Walkin4d852802014-10-12 17:46:13 -07005230.7.9: 2004-Feb-01 T-version-0-7-9
Lev Walkinf15320b2004-06-03 03:38:44 +0000524
Lev Walkin4d852802014-10-12 17:46:13 -0700525 * Human readable printing support.
526 * Support for implicit (standard) constraints.
Lev Walkinf15320b2004-06-03 03:38:44 +0000527
Lev Walkin4d852802014-10-12 17:46:13 -07005280.7.8: 2004-Jan-31
Lev Walkinf15320b2004-06-03 03:38:44 +0000529
Lev Walkin4d852802014-10-12 17:46:13 -0700530 * SET now rejects duplicate fields in the data stream.
Lev Walkinf15320b2004-06-03 03:38:44 +0000531
Lev Walkin4d852802014-10-12 17:46:13 -07005320.7.7: 2004-Jan-25
Lev Walkinf15320b2004-06-03 03:38:44 +0000533
Lev Walkin4d852802014-10-12 17:46:13 -0700534 * Added types: GeneralizedTime and UTCTime.
Lev Walkinf15320b2004-06-03 03:38:44 +0000535
Lev Walkin4d852802014-10-12 17:46:13 -07005360.7.6: 2004-Jan-24 T-version-0-7-6
Lev Walkinf15320b2004-06-03 03:38:44 +0000537
Lev Walkin4d852802014-10-12 17:46:13 -0700538 * DER encoding of a SET OF now involves dynamic sorting.
Lev Walkinf15320b2004-06-03 03:38:44 +0000539
Lev Walkin4d852802014-10-12 17:46:13 -07005400.7.5: 2004-Jan-24 T-version-0-7-5
Lev Walkinf15320b2004-06-03 03:38:44 +0000541
Lev Walkin4d852802014-10-12 17:46:13 -0700542 * DER encoding of a SET with untagged CHOICE
543 now involves dynamic sorting.
Lev Walkinf15320b2004-06-03 03:38:44 +0000544
Lev Walkin4d852802014-10-12 17:46:13 -07005450.7.0: 2004-Jan-19 T-version-0-7-0
Lev Walkinf15320b2004-06-03 03:38:44 +0000546
Lev Walkin4d852802014-10-12 17:46:13 -0700547 * A bunch of DER encoders is implemented.
Lev Walkinf15320b2004-06-03 03:38:44 +0000548
Lev Walkin4d852802014-10-12 17:46:13 -07005490.6.6: 2004-Jan-11
Lev Walkinf15320b2004-06-03 03:38:44 +0000550
Lev Walkin4d852802014-10-12 17:46:13 -0700551 * Implemented CHOICE decoder.
552 * Implemented destructors support.
Lev Walkinf15320b2004-06-03 03:38:44 +0000553
Lev Walkin4d852802014-10-12 17:46:13 -07005540.6.5: 2004-Jan-03
Lev Walkinf15320b2004-06-03 03:38:44 +0000555
Lev Walkin4d852802014-10-12 17:46:13 -0700556 * Implemented SET decoder.
557 * Implemented SET OF and SEQUENCE OF decoders.
Lev Walkinf15320b2004-06-03 03:38:44 +0000558
Lev Walkin4d852802014-10-12 17:46:13 -07005590.6.4: 2003-Dec-31
Lev Walkinf15320b2004-06-03 03:38:44 +0000560
Lev Walkin4d852802014-10-12 17:46:13 -0700561 * Implemented BOOLEAN, NULL, ENUMERATED decoders.
562 * Implemented OCTET STRING decoder.
563 * Implemented BIT STRING decoder.
Lev Walkinf15320b2004-06-03 03:38:44 +0000564
Lev Walkin4d852802014-10-12 17:46:13 -07005650.6: 2003-Dec-30
Lev Walkinf15320b2004-06-03 03:38:44 +0000566
Lev Walkin4d852802014-10-12 17:46:13 -0700567 * First decoding of a BER-encoded structure!
Lev Walkinf15320b2004-06-03 03:38:44 +0000568
Lev Walkin4d852802014-10-12 17:46:13 -07005690.5: 2003-Dec-28
Lev Walkinf15320b2004-06-03 03:38:44 +0000570
Lev Walkin4d852802014-10-12 17:46:13 -0700571 * Framework and most of the compiler backbone coding done.
Lev Walkinf15320b2004-06-03 03:38:44 +0000572
Lev Walkin4d852802014-10-12 17:46:13 -07005730.1: 2003-Nov-28
Lev Walkinf15320b2004-06-03 03:38:44 +0000574
Lev Walkin4d852802014-10-12 17:46:13 -0700575 * Programming started.
Lev Walkin6d67d912004-10-05 06:39:35 +0000576
577=== Bug importance disclosure terms ===
578
579SEVERITY.
580 This term applies to the frequence the particular construct is used
581 in the real world. The higher the frequency, the more chances of triggering
582 this bug.
Lev Walkin4d852802014-10-12 17:46:13 -0700583 low: The ASN.1 specifications which could trigger
584 this kind of bug are not widespread.
585 medium: The particular ASN.1 construct is used quite often,
586 so the chance of triggering an error is considerable.
587 high: This fix is considered urgent, or the particular ASN.1
588 construct triggering this bug is in wide use.
Lev Walkin6d67d912004-10-05 06:39:35 +0000589
590SECURITY IMPACT.
591 This term applies to the amount of potential damage a bug exploitation
592 could cause.
Lev Walkin4d852802014-10-12 17:46:13 -0700593 none: No malicious exploitation is possible.
594 low: The local exploitation is unlikely; the remote exploitation
595 is not possible.
596 medium: The remote exploitation is possible when a particular ASN.1
597 construct is being used. If possible, only hard failure, spin
598 or memory leak are the possible outcome: no shellcode
599 injection could possibly be carried by the attack.
600 high: The remote shellcode injection is possible, or the bug is
601 otherwise remotely exploitable for most specifications.
Lev Walkin6d67d912004-10-05 06:39:35 +0000602