blob: 7459cc6fd880e5fd4d83263fdfde3b6070d2e486 [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 Walkinceae6ed2017-10-02 14:21:58 -070011 * converter-sample.c renamed into converter-example.c.
Lev Walkin588bf0f2017-10-13 23:51:16 -070012 * OBJECT IDENTIFIER and RELATIVE-OID API simplified.
Lev Walkinceae6ed2017-10-02 14:21:58 -070013 * Added random value generation (-R option to converter-example).
14 * Added LibFuzzer-based randomized tests for supported transfer syntaxes
15 (DER, OER, UPER, XER) into tests/tests-randomized. See the following
16 article to get the latest LibFuzzer-enabled clang on macOS:
17 https://medium.com/@levwalkin/compile-llvm-clang-libfuzzer-b61e82718430
18 then ensure the new clang is in the way:
19 CC=clang CXX=clang++ ./configure --enable-Werror --enable-test-fuzzer
Lev Walkin56153042017-10-24 00:47:03 -070020 * uper_encode() API got new argument (breaks API compatibility).
Lev Walkind1c28aa2017-11-11 18:04:26 -080021 * asn1c -gen-XXX flags are deprecated. Use -no-gen-XXX to disable codecs.
22 * asn1c -no-gen-example option to disable converter-example generation.
Lev Walkin793982a2017-10-02 14:12:51 -070023
24 FIXES:
Lev Walkin2701dc22017-09-09 23:27:34 -070025 * CVE-2017-12966 verified not present.
Lev Walkindcae9ce2017-09-18 20:13:36 -070026 * Fix incomplete (failed) CHOICE XER decoding memory leak.
Lev Walkin20e22eb2017-09-18 20:18:30 -070027 (Severity: medium; Security impact: medium)
Lev Walkindcae9ce2017-09-18 20:13:36 -070028 * Fix REAL type overwrite conversion memory leak.
Lev Walkin20e22eb2017-09-18 20:18:30 -070029 (Severity: low; Security impact: medium)
Lev Walkin9d1b45f2017-10-01 17:04:48 -070030 * Fix UPER string decoding constrained only by lower bound > 0
31 (Severity: low; Security impact: none)
Lev Walkin5d947a82017-10-03 01:04:03 -070032 * Fix UPER decoding of large [bit-]strings of size a multiple of 16K
33 (Severity: low; Security impact: none)
Lev Walkin793982a2017-10-02 14:12:51 -070034 * Fix XER decoder crash on maliciously constructed ENUMERATED input.
35 (Severity: medium; Security impact: medium)
Lev Walkinfa9bb6d2017-03-26 03:48:43 -070036
Lev Walkin792b22b2017-03-26 03:29:55 -0700370.9.28: 2017-03-26
Lev Walkinc644d992015-09-14 13:45:36 -070038 * PER decoding: avoid memory leak on error. By github.com/simo5
Lev Walkin108d4f92014-10-12 18:58:14 -070039 * Constness patch #46 by Wim L <wiml@omnigroup.com> (41bbf1c..78d604f).
Lev Walkina1e5b9d2015-09-14 12:50:42 -070040 Build issues:
41 * Fixed generated file permissions introduced by earlier pull (issue/32).
Lev Walkin108d4f92014-10-12 18:58:14 -070042 * Win32/MinGW patch #31 by Frank Morgner (frankmorgner).
Lev Walkina1e5b9d2015-09-14 12:50:42 -070043 * Autoreconf fix patch by Dave Cridland (github.com/dwd)
44 * Fix autoreconf-2.69 failure by github.com/brchiu
Lev Walkinc644d992015-09-14 13:45:36 -070045 * Fix C99 warnings. Fix by Adrien Destugues (github.com/pulkomandy).
Lev Walkin7c691052015-09-14 13:50:14 -070046 * C89 compliance fix by Jaroslav Imrich (github.com/jariq).
Lev Walkin7c1dc052016-03-14 03:08:15 -070047 * C standard compliance fixes by Markus Elfring (github.com/elfring).
Lev Walkineace46c2014-09-17 02:18:44 -070048
Lev Walkinb0ed8182014-09-17 01:55:37 -0700490.9.27: 2014-Sep-17
Lev Walkin65907f02014-09-14 17:19:21 -070050 * Build structure fixes for portability.
Lev Walkin58ecc7b2014-09-17 00:32:03 -070051 * Disable long debug of ASN.1 operations during `make check` stage.
52 * Introduce --enable-ASN_DEBUG configure flag to emit long debug output.
Lev Walkin65907f02014-09-14 17:19:21 -070053
Lev Walkine0d321a2014-09-11 01:28:57 -0700540.9.26: 2014-Sep-11
Lev Walkin4d852802014-10-12 17:46:13 -070055 * Updated asn1c-usage.pdf.
56 * Made -fskeletons-copy a default option; removed cmdline option.
57 * Made -fnative-types a default option; removed cmdline option.
58 Added -fwide-types for backwards compatibility.
Lev Walkin4062b012013-10-11 14:29:38 -070059 * Add -fline-refs to avoid being unfriendly to version control systems.
Lev Walkin6169b8d2013-12-07 11:02:44 -080060 * Default constraint checking fix.
61 Thanks to Bartosz Marcinkiewicz <bma@megawatt.com.pl>
Lev Walkinaa61a0f2014-01-13 23:08:47 -080062 * Get rid of non-standard pointer arithmetics on void* pointer.
Lev Walkin6c527842014-02-09 04:34:54 -080063 * PER-encoding of integers wider than 32 bits.
Lev Walkine3e8de02013-03-19 17:16:00 -070064
Lev Walkin4d852802014-10-12 17:46:13 -0700650.9.24: 2013-Mar-16
Lev Walkin83f2a1c2010-03-10 23:09:29 +000066
Lev Walkin4d852802014-10-12 17:46:13 -070067 * GeneralizedTime fix for working with time offsets which are not
68 representable in whole hours. (Severity: low; Security impact: low)
69 Thanks to IP Fabrics, Inc.
70 * Added -fincludes-quoted to asn1c to generate #includes in "double"
71 instead of <angle> quotes.
72 * PER encoding correctness fix. (Severity: high; Security impact: low)
73 Reported by Grzegorz Aksamit.
74 * ENUMERATED extension values check relaxed. Reported by Gabriel Burca.
75 * Fixed decimal decoding of REAL values in -fnative-types mode
76 (Severity: medium; Security impact: medium)
77 * Removed webcgi subproject (introduced in 2004) as useless.
Lev Walkin83f2a1c2010-03-10 23:09:29 +000078
Lev Walkin4d852802014-10-12 17:46:13 -0700790.9.22: 2008-Nov-19
Lev Walkin66adab42006-09-23 02:52:12 +000080
Lev Walkin4d852802014-10-12 17:46:13 -070081 * Added -pdu=all and -pdu=<type> switches to asn1c.
82 * Added PER support for most known-multiplier string types:
83 IA5String, VisibleString, PrintableString, BMPString, UniversalString;
84 useful types: GeneralizedTime, UTCTime, ObjectDescriptor;
85 as well as REAL and OBJECT IDENTIFIER.
86 TODO: SET type.
87 * Added PER support for extensions in SEQUENCE.
88 * Multiple enhancements by Daniele Varrazzo <daniele.varrazzo@gmail.com>
89 * Fixed explicit tagging of an in-lined constructed type.
90 (Severity: low; Security impact: none).
91 * Memory leak fixed in SET OF / SEQUENCE OF when wrong encoding
92 is encountered. (Severity: medium; Security impact: low)
93 * Fixed extensibility handling of second SEQUENCE production.
94 (Severity: low; Security impact: none)
95 * Added DEFAULT handling for known multiplier string.
96 * Added a sample OMA ULP decoder (./examples/sample.source.ULP).
97 * Added full-width 32-bit integer encoding support in PER.
98 * Fixed 1-byte OOB write issue with non-standard and Windows
99 memory allocators (Severity: low; Security impact: medium).
100 Reported by Sheng Yu.
Lev Walkin66adab42006-09-23 02:52:12 +0000101
Lev Walkin4d852802014-10-12 17:46:13 -07001020.9.21: 2006-Sep-17
Lev Walkin6b3ff542006-03-06 14:51:00 +0000103
Lev Walkin4d852802014-10-12 17:46:13 -0700104 * skeletons/standard-modules directory is now used for standard types.
105 * Fixed class field access problem (Test case 98)
106 (Severity: medium; Security impact: none)
107 * Refactored Information Object Classes parsing.
108 * Refactored Parameterization support.
109 * [typedef enum foo {}] foo_e; is now e_foo, see #1287989
110 * Refactored ValueSetTypeAssignment parsing.
111 * asn-decoder-template.c renamed into converter-sample.c
112 * MEGACO (Media Gateway Control Protocol) decoder sample added.
113 * First release of PER encoder (does not encode SETs yet).
114 * Added a sample LDAP decoder (./examples/sample.source.LDAP3).
115 * Added a sample 3GPP RRC decoder (./examples/sample.source.RRC).
116 * Added a sample MEGACO (H.248.1) decoder (sample.source.MEGACO).
Lev Walkin5e155492006-03-06 11:25:53 +0000117
Lev Walkin4d852802014-10-12 17:46:13 -07001180.9.20: 2006-Mar-06
Lev Walkind1bfea62005-11-08 03:06:16 +0000119
Lev Walkin4d852802014-10-12 17:46:13 -0700120 * SET OF CHOICE, SEQUENCE OF CHOICE and a certain named S/O types
121 are represented differently in XER. THIS IS AN INCOMPATIBLE CHANGE.
122 (Test case 70) (Severity: low; Security impact: low)
123 * asn1c: Removed -ftypes88 command line option.
124 * Started PER implementation. Somewhat experimental!
Lev Walkind1bfea62005-11-08 03:06:16 +0000125
Lev Walkin4d852802014-10-12 17:46:13 -07001260.9.19: 2005-Oct-06
Lev Walkinda9a3b82005-08-16 17:00:21 +0000127
Lev Walkin4d852802014-10-12 17:46:13 -0700128 * A proper solution to circular references. No kludge flags
129 should be necessary anymore to produce reference-free code:
130 recursive dependencies are resolved automatically.
131 * Test cases 73 & 92 keep track of various circular references.
132 * Introduced compiler directives to allow finer control over the
133 generated code ("--<ASN1C...>--" in comments), (Test case 93).
134 * New feature for unber(1): -s <skip> bytes.
135 * Mandatory elements map for SET was not getting generated properly.
136 (Test case 94) (Severity: high; Security impact: low)
137 * asn1c: new command line option: -fskeletons-copy.
Lev Walkinda9a3b82005-08-16 17:00:21 +0000138
Lev Walkin4d852802014-10-12 17:46:13 -07001390.9.18: 2005-Aug-14
Lev Walkin58db6952005-08-12 05:13:35 +0000140
Lev Walkin4d852802014-10-12 17:46:13 -0700141 * The obsolete X.208 syntax is handled gracefully now (compound types'
142 member names are invented on the fly). (Test case 87).
143 * Generating enumeration tables for INTEGER types (Test case 88).
144 * Generating enumeration tables for BIT STRING types (Test case 89).
145 * Conditional INTEGER/ENUMERATED representation: long vs. INTEGER_t
146 type is chosen based on PER visible constraints (Test cases 90, 91).
147 * Union structures for CHOICE type are not anonymous anymore.
148 * Made unber(1) program more verbose: effective structure length is
149 now displayed as L="<n>" at the closing tag. (Test check-xxber.sh).
150 * Fixed unber(1)'s -1 switch for indefinite encoding length.
151 * New command line option for unber(1): -m to enable minimalistic mode.
Lev Walkin58db6952005-08-12 05:13:35 +0000152
Lev Walkin4d852802014-10-12 17:46:13 -07001530.9.17: 2005-Aug-07
Lev Walkine54e9422005-07-21 01:18:19 +0000154
Lev Walkin4d852802014-10-12 17:46:13 -0700155 * Tagging mode is implicitly IMPLICIT if AUTOMATIC TAGS is used, #30.6.
156 (Test cases 55, 86).
157 * Started to use extern "C" {} in skeleton headers.
158 * Introduced -finline-choice command line option to fix
159 yet another class of circular references.
Lev Walkine54e9422005-07-21 01:18:19 +0000160
Lev Walkin4d852802014-10-12 17:46:13 -07001610.9.16: 2005-July-04
Lev Walkin2535a692005-07-02 21:42:40 +0000162
Lev Walkin4d852802014-10-12 17:46:13 -0700163 * GeneralizedTime API now supports fractions of seconds.
164 Thanks to Bent Nicolaisen <BN@JAI.com> for support.
165 * ASN.1 parser has been tweaked to allow parsing something like
166 "SEQUENCE----comment----", which is ambiguous for many reasons.
167 * XER decoder better handles not-yet-defined future extensions.
Lev Walkin2535a692005-07-02 21:42:40 +0000168
Lev Walkina127c3a2005-07-02 08:19:26 +00001690.9.15: 2005-July-02
Lev Walkin88693e82005-05-17 21:46:18 +0000170
Lev Walkin4d852802014-10-12 17:46:13 -0700171 * Compiler now checks 64-bit overflows in constraints range handling
172 code. No effect on the code produced by the compiler.
173 * Compiler support for tagged and marked parametrized members.
174 * Empty tags to element map avoided.
175 * Compiled code GCC 4.x compatibility.
Lev Walkin88693e82005-05-17 21:46:18 +0000176
Lev Walkin4d852802014-10-12 17:46:13 -07001770.9.14: 2005-Apr-29
Lev Walkin8b2f0c92005-04-29 18:55:12 +0000178
Lev Walkin4d852802014-10-12 17:46:13 -0700179 * Fixed check-70.-fnative-integers.c test (it was failing
180 when no test directory was found).
Lev Walkin8b2f0c92005-04-29 18:55:12 +0000181
Lev Walkin4d852802014-10-12 17:46:13 -07001820.9.13: 2005-Apr-24
Lev Walkincbf5a7e2005-03-10 18:53:33 +0000183
Lev Walkin4d852802014-10-12 17:46:13 -0700184 * Added extra const qualifiers into the support code.
185 * More RFC variations supported in crfc2asn1.pl.
186 * Refined string values compatibility. (Test cases 77, 78).
187 * Support for ContainedSubtype constraints. (Test case 16).
188 * Parsing support for CONSTRAINED BY. (Test case 79).
189 * Support for CharsDefn (Quadruple and Tuple, most used in
190 ASN1-CHARACTER-MODULE) (Test case 80).
191 * Pretty-printing support for WITH COMPONENT[S]. (Test case 82).
192 * Streamed OCTET STRING decoding of large values: fixed allocation
193 problem introduced in 0.9.9. (Severity: high; Security impact: medium)
194 Reported by Yann Grossel <olrick@users.sourceforge.net>.
195 * Fixed BASIC-XER encoding of REAL numbers.
Lev Walkincbf5a7e2005-03-10 18:53:33 +0000196
Lev Walkin4d852802014-10-12 17:46:13 -07001970.9.12: 2005-Mar-10
Lev Walkine8318b82005-03-06 09:29:03 +0000198
Lev Walkin4d852802014-10-12 17:46:13 -0700199 * Fixed a name clash in produced constraint checking code.
200 * #includes are now in single quotes (to solve a name
201 clash with system's <time.h> on a Win32 system).
202 * Small refinement of XML DTD generation (`asn1c -X`).
203 * Relaxed XER processing rules to skip extra whitespace
204 in some more places. It also skips XML comments (although
205 XML comments in XER are prohibited by X.693, #8.2.1).
206 (Test case 70) (Severity: medium; Security impact: none)
207 Reported by <Dominique.Nerriec@alcatel.fr>.
208 * Constraints on primitive types being defined are now supported.
209 (Test case 74) (Severity: low; Security impact: none)
210 * XMLValueList generation fixed for CHOICE type.
211 (Severity: medium; Security impact: none)
212 * Added the GSM TAP3 decoder into ./examples/sample.source.TAP3
Lev Walkine8318b82005-03-06 09:29:03 +0000213
Lev Walkin4d852802014-10-12 17:46:13 -07002140.9.11: 2005-Mar-04
Lev Walkin87da8262005-03-03 21:29:10 +0000215
Lev Walkin4d852802014-10-12 17:46:13 -0700216 * Released -fcompound-names to fix the name clashes in the code
217 produced by the asn1c.
218 * Released -fno-include-deps to avoid #including non-critical
219 external dependencies.
220 * Compiler is taught to produce compilable code for yet another class
221 of circular ASN.1 type references.
222 * X.693:8.3.4 prohibits anything but SignedNumber; fixed XER codec.
223 * Fixed ENUMERATED identifier to value conversion in XER.
224 Reported by <jacque.celaire@caramail.com>.
225 * If the compiled file contents are the same as in already existing
226 file (left from previous compilation), the old file is retained.
227 This prevents thrashing `make` dependencies if amount of changes in
228 the original ASN.1 module(s) is small.
Lev Walkin87da8262005-03-03 21:29:10 +0000229
Lev Walkin4d852802014-10-12 17:46:13 -07002300.9.10: 2005-Feb-25
Lev Walkin043af0d2005-02-24 21:07:35 +0000231
Lev Walkin4d852802014-10-12 17:46:13 -0700232 * Completed the XER XMLValueList encoding and decoding.
233 * Native integer type is now using "long".
234 * Fixed #1150856. Reported by <vvvy@users.sourceforge.net>.
235 * Some WIN32 portability fixes.
Lev Walkin043af0d2005-02-24 21:07:35 +0000236
Lev Walkin4d852802014-10-12 17:46:13 -07002370.9.9: 2005-Feb-22
Lev Walkind2388382005-01-17 15:27:47 +0000238
Lev Walkin4d852802014-10-12 17:46:13 -0700239 * First release of XER (XML) decoding implementation (somewhat
240 experimental).
241 * ANY allocation routine fixed.
242 Reported by <mikko.ahonen@elma.net>.
243 * Fixed tag parsing (tags like "[ 0 ]" were not supported).
244 * Compiler now checks for duplicate ASN.1 types across modules.
Lev Walkind2388382005-01-17 15:27:47 +0000245
Lev Walkin4d852802014-10-12 17:46:13 -07002460.9.8: 2005-Jan-17
Lev Walkin144db9b2004-10-12 23:26:53 +0000247
Lev Walkin4d852802014-10-12 17:46:13 -0700248 * [NEW PLATFORM] Compiled and tested on Linux @ alpha64 (LP64).
249 Some code needed to be fixed regarding int-long conversions
250 (mostly inside the test suite), and floating point handling
251 code needed to be restructured to handle signalling NAN and
252 other floating point exceptions quietly. Smooth transition!
253 * [NEW PLATFORM] Compiled and tested on Sun Solaris 9 @ sparc.
254 Improved includes/defines of/for system headers.
255 * -X command line option added to asn1c to generate XML DTD.
256 * Empty SEQUENCE and SET clauses are now allowed.
257 * Removed confusion between &xNN; and &#xNN; in enber and unber.
258 * Removed order dependency in DEFAULT references to ENUMERATED
259 identifiers (./tests/68-*-OK.asn1).
260 * ber_dec_rval_t renamed into asn_dec_rval_t: more generality.
261 * Extensions in CHOICE types are properly marked as non-pointers
262 (Test case 59) (Severity: medium; Security impact: medium)
263 Reported by <roman.pfender@sdm.de>.
264 * Tagged CHOICE type is now supported again.
265 (Test case 59) (Severity: low; Security impact: low)
266 Reported by <orlinkata@dir.bg>.
267 * Implemented der_encode_to_buffer() procedure.
Lev Walkin144db9b2004-10-12 23:26:53 +0000268
Lev Walkin4d852802014-10-12 17:46:13 -07002690.9.7.1: 2004-Oct-12
Lev Walkin144db9b2004-10-12 23:26:53 +0000270
Lev Walkin4d852802014-10-12 17:46:13 -0700271 * Fixed automatic tagging for extensions of compound types.
272 * Fixed ParametrizedReference parsing: {} are now recognized.
Lev Walkin144db9b2004-10-12 23:26:53 +0000273
Lev Walkin4d852802014-10-12 17:46:13 -07002740.9.7: 2004-Oct-11
Lev Walkin0ca7aec2004-10-02 00:12:11 +0000275
Lev Walkin4d852802014-10-12 17:46:13 -0700276 * Finished CXER implementation by adding SET and SET OF canonical
277 ordering support.
278 * Fixed unber(1) limits controlling logic.
279 * Removed C99'izm from the x509dump, now understood by older compilers.
280 * Enhanced UTF8String constraint validation, now it checks
281 for the minimal encoding length; API of UTF8String_length() changed.
282 * Fixed SEQUENCE dealing with premature termination of the
283 optionals-laden indefinite length structure. The code was previously
284 refusing to parse such structures.
285 * Fixed explicitly tagged ANY type encoding and decoding
286 (Severity: medium; Security impact: low).
287 * Fixed CHOICE code spin when indefinite length structures appear
288 in the extensions (Severity: medium; Security impact: medium).
289 Reported by <siden@ul-gsm.ru>.
290 * BIT STRING now stores the number of unused octets in a separate field.
Lev Walkin0ca7aec2004-10-02 00:12:11 +0000291
Lev Walkin4d852802014-10-12 17:46:13 -07002920.9.6: 2004-Sep-29
Lev Walkin33cded12004-09-19 19:40:52 +0000293
Lev Walkin4d852802014-10-12 17:46:13 -0700294 * Added several security firewalls: decoder's stack usage control
295 and the stricter checking of the TLV length.
296 * Implemented BASIC-XER encoding support (X.693).
297 * Implemented unber(1) and enber(1) for BER<->XML translation.
298 * Implemented CGI for online ASN.1 compilation (asn1c/webcgi).
299 * Implemented the sample X.509 decoder (./examples/sample.source.PKIX1).
300 * NamedType is now supported for SET OF/SEQUENCE OF type.
301 * Added -fno-constraints option to asn1c, which disabled generation of
302 ASN.1 subtype constraints checking code.
303 * Added ASN1C_ENVIRONMENT_VERSION and get_asn1c_environment_version().
304 * Fixed ANY type decoding (Severity: high; Security impact: low).
305 * Fixed BER decoder restartability problem with certain primitive
306 types (BOOLEAN, INTEGER, and REAL). The problem occured when the
307 encoding of such type is split between several bytes.
308 (Severity: high; Security impact: low)
309 * Support for cross-referencing type definitions (updated ./tests/43-*).
310 * Fixed pretty-printing of the REAL type. Added lots of test cases.
311 * Renamed asn1_* into asn_* in function and type names.
312 * Updated documentation.
Lev Walkin33cded12004-09-19 19:40:52 +0000313
Lev Walkin4d852802014-10-12 17:46:13 -07003140.9.5: 2004-Sep-17
Lev Walkinb4adfd32004-09-13 08:32:15 +0000315
Lev Walkin4d852802014-10-12 17:46:13 -0700316 * Fixed CER (common BER) decoder code. See check-25.c/VisibleString
317 case for details. X.690 specifies that inner structures in BER
318 encoding must be tagged by stripping off the outer tag for each
319 subsequent containment level. See also X.690: 8.21.5.4 and
320 the "Spouse" case in A.3.
321 (Severity: medium; Security impact: low)
322 * Added converters between any generic type and the ANY type.
323 * Parser fixed: Information Object Class fields may be taged.
324 * Parser fixed: tagged types inside SEQUENCE OF/SET OF support.
325 * Improved DEFAULT Value parsing and pretty-printing.
326 * Condition on distinct tags checker was incorrectly dealing with
327 tagged CHOICE types. Fixed. Modified tests/37-indirect-choice-OK.asn1
328 * Improved type name generation code ("struct foo" vs "foo_t").
329 * Fixed constraint checking code incorrectly dealing with imported
330 types with constraint values defined in other modules.
331 * Real REAL support! (Haven't tested denormals support yet!)
332 See skeletons/tests/check-REAL.c
Lev Walkinb4adfd32004-09-13 08:32:15 +0000333
Lev Walkin4d852802014-10-12 17:46:13 -07003340.9.4: 2004-Sep-10
Lev Walkin4a727052004-09-10 09:38:17 +0000335
Lev Walkin4d852802014-10-12 17:46:13 -0700336 * More support for recursive type definitions.
337 * Explicit support for ANY type decoding.
338 * Refactored tags processing code.
339 * Fixed constraints checking code: non-exploitable buffer overflow.
340 (Severity: medium; Security impact: low)
Lev Walkin4a727052004-09-10 09:38:17 +0000341
Lev Walkin4d852802014-10-12 17:46:13 -07003420.9.3: 2004-Sep-07
Lev Walkin8059bc42004-08-26 06:19:23 +0000343
Lev Walkin4d852802014-10-12 17:46:13 -0700344 * Extended constraints support in parametrized types.
345 * Better support for parametrization and constraints handling.
346 * Better handling of recursive type definitions.
347 * Added support for ANY type.
Lev Walkin8059bc42004-08-26 06:19:23 +0000348
Lev Walkin4d852802014-10-12 17:46:13 -07003490.9.2: 2004-Aug-24
Lev Walkin4ce78ca2004-08-25 01:34:11 +0000350
Lev Walkin4d852802014-10-12 17:46:13 -0700351 * More flexible subtype constraints handling, with relaxed
352 PER visibility rules for actual constraints checking code generator.
353 * Indirect references in constraints resolver code fixed.
354 * Avoided compilation warning on gcc 3.3.3 systems.
355 * Better ValueSet printing.
Lev Walkin4ce78ca2004-08-25 01:34:11 +0000356
Lev Walkin4d852802014-10-12 17:46:13 -07003570.9.1: 2004-Aug-23
Lev Walkinfa66e082004-08-24 05:25:57 +0000358
Lev Walkin4d852802014-10-12 17:46:13 -0700359 * Documentation updated: doc/asn1c-usage.pdf
360 * Fixed OBJECT IDENTIFIER human-readable printing.
361 Reported by <siden@ul-gsm.ru>.
Lev Walkinfa66e082004-08-24 05:25:57 +0000362
Lev Walkin4d852802014-10-12 17:46:13 -07003630.9: 2004-Aug-23
Lev Walkin3d0b5a32004-08-18 05:43:55 +0000364
Lev Walkin4d852802014-10-12 17:46:13 -0700365 * Reworked subtype constraints handling, aiming at PER-applicability.
366 * BOOLEAN and NULL are now implemented in terms of native int type.
367 * Compiler now links in only necessary skeleton files.
368 * -t option added to asn1c to ease manual BER/CER/DER decoding.
369 * Added support COMPONENTS OF construct.
370 * Numerous parser fixes and enhancements.
371 * Better constraint failure reporting.
Lev Walkin3d0b5a32004-08-18 05:43:55 +0000372
Lev Walkin4d852802014-10-12 17:46:13 -07003730.8.19: 2004-Aug-18
Lev Walkin1ef79852004-08-18 09:05:12 +0000374
Lev Walkin4d852802014-10-12 17:46:13 -0700375 * Fixed BER encoder (problem encoding large tag values)
376 (Severity: medium; Security impact: low)
Lev Walkin1ef79852004-08-18 09:05:12 +0000377
Lev Walkin4d852802014-10-12 17:46:13 -07003780.8.18: 2004-Aug-12
Lev Walkinb0892fe2004-08-13 12:39:17 +0000379
Lev Walkin4d852802014-10-12 17:46:13 -0700380 * Parser: fixed multiple IMPORTS problem (incorrect assertion).
381 * Parser: constraints extensibility parsing fix.
Lev Walkinb0892fe2004-08-13 12:39:17 +0000382
Lev Walkin4d852802014-10-12 17:46:13 -07003830.8.17: 2004-Aug-11
Lev Walkind8b940c2004-08-11 05:35:51 +0000384
Lev Walkin4d852802014-10-12 17:46:13 -0700385 * Improved compiler output: duplicate #includes eliminated.
386 * Win32 portability fixes.
387 * More compatibility with C++ or non-GCC compilers.
Lev Walkind8b940c2004-08-11 05:35:51 +0000388
Lev Walkin4d852802014-10-12 17:46:13 -07003890.8.16: 2004-Jul-22
Lev Walkinab42ef92004-07-22 12:19:42 +0000390
Lev Walkin4d852802014-10-12 17:46:13 -0700391 * Fixed application-level problem in SET OF/SEQUENCE OF array cleanup.
392 (Severity: medium; Security impact: low)
393 * Improved asn_GT2time() and added asn_time2{GT,UT}() functions.
394 * BIT STRING pretty-printing.
Lev Walkinab42ef92004-07-22 12:19:42 +0000395
Lev Walkin4d852802014-10-12 17:46:13 -07003960.8.15: 2004-Jul-20
Lev Walkin29a62262004-07-15 10:52:58 +0000397
Lev Walkin4d852802014-10-12 17:46:13 -0700398 * Fixed parser: memory leak in free_struct code for SET OF/SEQUENCE OF.
399 (Severity: high; Security impact: medium)
400 * Fixed parser: invalid memory reference in code constructing tags.
401 (Test case 48) (Severity: high; Security impact: medium)
402 When encoding data for certain ASN.1 specifications containing
403 explicit tags, the tag is always written incorrectly due to
404 incorrect memory reference. The encoding will almost always produce
405 unparseable data and might well reference unmapped region so program
406 would produce segmentation violation. Fortunately, memory is
407 read, not written, so remote exploits cannot execute arbitrary
408 code and triggering unmapped memory reference is highly unlikely
409 even it attacker knows the code (basically, the compiler should place
410 asn1_DEF_... right before the end of the mapped memory region, which
411 is extremely rare).
412 * Improved INTEGER type printing.
Lev Walkin29a62262004-07-15 10:52:58 +0000413
Lev Walkin4d852802014-10-12 17:46:13 -07004140.8.14: 2004-Jun-30
Lev Walkin35631482004-07-01 00:52:50 +0000415
Lev Walkin4d852802014-10-12 17:46:13 -0700416 * Fixed compiler: extensibility of CHOICE and SET type has not been
417 taken into account during table construction.
418 (Test case 47) (Severity: high; Security impact: low)
Lev Walkin35631482004-07-01 00:52:50 +0000419
Lev Walkin4d852802014-10-12 17:46:13 -07004200.8.13: 2004-Jun-29
Lev Walkind0d63f02004-06-28 21:22:20 +0000421
Lev Walkin4d852802014-10-12 17:46:13 -0700422 * Fixed compiler: the skip values for IMPLICIT tagging were broken
423 in some complex cases where one type is defined using another.
424 (Test case 46) (Severity: medium; Security impact: low).
425 * Added -fknown-extern-type command line parameter to asn1c.
426 * Removed -N command line flag and underlying functionality
427 to honor KISS principle.
Lev Walkind0d63f02004-06-28 21:22:20 +0000428
Lev Walkin4d852802014-10-12 17:46:13 -07004290.8.12: 2004-Jun-17
Lev Walkin715f45c2004-06-14 13:53:32 +0000430
Lev Walkin4d852802014-10-12 17:46:13 -0700431 * RELATIVE-OID and OBJECT IDENTIFIER encoders/decoders are not bound
432 anymore to an integer type of specific size (unsigned long). The
433 size of an integer must be provided explicitly.
434 See {OBJECT_IDENTIFIER|RELATIVE_OID}_{get|set}_arcs().
435 * SEQUENCE BER decoder fixed again for complex CHOICE case
436 (Test case 44) (Severity: medium; Security impact: low).
Lev Walkin715f45c2004-06-14 13:53:32 +0000437
Lev Walkin4d852802014-10-12 17:46:13 -07004380.8.11: 2004-Jun-05
Lev Walkin67c2aec2004-06-05 08:47:18 +0000439
Lev Walkin4d852802014-10-12 17:46:13 -0700440 * Enforced stricter conformance with C standards.
441 * SEQUENCE BER decoder is now equipped with the sorted map
442 in case of complex CHOICE descendants. Test case 44 created.
Lev Walkin67c2aec2004-06-05 08:47:18 +0000443
Lev Walkin4d852802014-10-12 17:46:13 -07004440.8.10: 2004-Jun-02
Lev Walkinf15320b2004-06-03 03:38:44 +0000445
Lev Walkin4d852802014-10-12 17:46:13 -0700446 * Added const qualifier where necessary.
447 * Changed position of outmost_tag fetcher within asn1_TYPE_descriptor_t
448 structure.
Lev Walkinf15320b2004-06-03 03:38:44 +0000449
Lev Walkin4d852802014-10-12 17:46:13 -07004500.8.9: 2004-May-26
Lev Walkinf15320b2004-06-03 03:38:44 +0000451
Lev Walkin4d852802014-10-12 17:46:13 -0700452 * Added *_{get|set}_arcs_*() functions for OBJECT IDENTIFIER
453 and RELATIVE-OID, together with test cases.
Lev Walkinf15320b2004-06-03 03:38:44 +0000454
Lev Walkin4d852802014-10-12 17:46:13 -07004550.8.8: 2004-May-09
Lev Walkinf15320b2004-06-03 03:38:44 +0000456
Lev Walkin4d852802014-10-12 17:46:13 -0700457 * Introduced subtype constraints support (incomplete!).
458 * Fixed compiler. If the last member of the SEQUENCE is OPTIONAL
459 and absent in the encoding, and the type is extensible (...) or
460 EXTENSIBILITY IMPLIED flag is set, then the structure could not
461 be correctly decoded. (Severity: high; Security impact: low).
462 * Compiler: fixed recursive ASN.1 types inclusion (Severity: low,
463 Security impact: none).
464 * Parser: IMPORTS/FROM fixes, now allowing multiple sections.
465 * NEW PLATFORM: Compiled and tested on MacOS X (@ PowerPC).
466 No major portability issues experienced.
Lev Walkinf15320b2004-06-03 03:38:44 +0000467
Lev Walkin4d852802014-10-12 17:46:13 -07004680.8.7: 2004-Apr-11 T-version-0-8-7
Lev Walkinf15320b2004-06-03 03:38:44 +0000469
Lev Walkin4d852802014-10-12 17:46:13 -0700470 * Fixed SEQUENCE BER decoder: if the last member of the SEQUENCE is
471 OPTIONAL and absent in the encoding, RC_FAIL was returned instead
472 of RC_OK (Severity: high; Security impact: low).
473 * Added test case to check the above problem.
474 * Added test case to check -fnative-integers mode.
Lev Walkinf15320b2004-06-03 03:38:44 +0000475
Lev Walkin4d852802014-10-12 17:46:13 -07004760.8.6: 2004-Apr-03 T-version-0-8-6
Lev Walkinf15320b2004-06-03 03:38:44 +0000477
Lev Walkin4d852802014-10-12 17:46:13 -0700478 * Fixed compiler output for embedded ASN.1 structures.
Lev Walkinf15320b2004-06-03 03:38:44 +0000479
Lev Walkin4d852802014-10-12 17:46:13 -07004800.8.5: 2004-Mar-28 T-version-0-8-5
Lev Walkinf15320b2004-06-03 03:38:44 +0000481
Lev Walkin4d852802014-10-12 17:46:13 -0700482 * Fixed ber_tlv_length() computation problem (Severity: high,
483 Security impact: none).
484 Reported by <vss@high.net.ru>
Lev Walkinf15320b2004-06-03 03:38:44 +0000485
Lev Walkin4d852802014-10-12 17:46:13 -07004860.8.4: 2004-Mar-22
Lev Walkinf15320b2004-06-03 03:38:44 +0000487
Lev Walkin4d852802014-10-12 17:46:13 -0700488 * Removed RC_ITAG enumeration element from BER decoder.
489 This return code did not have much practical value.
Lev Walkinf15320b2004-06-03 03:38:44 +0000490
Lev Walkin4d852802014-10-12 17:46:13 -07004910.8.3: 2004-Mar-14 T-version-0-8-3
Lev Walkinf15320b2004-06-03 03:38:44 +0000492
Lev Walkin4d852802014-10-12 17:46:13 -0700493 * Fixed SET::BER decoder: restart after reaching a buffer boundary
494 weas broken (Severity: high; Security impact: low).
495 * Fixed OCTET STRING::BER decoder: restart after reaching a buffer
496 boundary was broken (Severity: high; Security impact: low).
497 Reported by <vss@high.net.ru>
498 * Added test cases to check decoders restartability.
499 * Slightly more general INTEGER2long decoder.
500 * Allowed nested /* C-type */ comments, as per X.680:2002.
Lev Walkinf15320b2004-06-03 03:38:44 +0000501
Lev Walkin4d852802014-10-12 17:46:13 -07005020.8.2: 2004-Mar-01 T-version-0-8-2
Lev Walkinf15320b2004-06-03 03:38:44 +0000503
Lev Walkin4d852802014-10-12 17:46:13 -0700504 * Fixed SEQUENCE BER decoder: an OPTIONAL element was required, where
505 should not have been (Severity: major; Security impact: low).
506 * Fixed print_struct pointer inheritance.
507 * Added -fno-c99 and -funnamed-unions
Lev Walkinf15320b2004-06-03 03:38:44 +0000508
Lev Walkin4d852802014-10-12 17:46:13 -07005090.8.1: 2004-Feb-22
Lev Walkinf15320b2004-06-03 03:38:44 +0000510
Lev Walkin4d852802014-10-12 17:46:13 -0700511 * -R switch to asn1c: Omit support code, compile only the tables.
512 * Introduced NativeInteger pseudotype.
513 * Corrected the informal print_struct()'s output format.
Lev Walkinf15320b2004-06-03 03:38:44 +0000514
Lev Walkin4d852802014-10-12 17:46:13 -07005150.8.0: 2004-Feb-03 T-version-0-8-0
Lev Walkinf15320b2004-06-03 03:38:44 +0000516
Lev Walkin4d852802014-10-12 17:46:13 -0700517 * Some documentation is created (a .pdf and a short manual page).
518 * Last touches to the code.
Lev Walkinf15320b2004-06-03 03:38:44 +0000519
Lev Walkin4d852802014-10-12 17:46:13 -07005200.7.9: 2004-Feb-01 T-version-0-7-9
Lev Walkinf15320b2004-06-03 03:38:44 +0000521
Lev Walkin4d852802014-10-12 17:46:13 -0700522 * Human readable printing support.
523 * Support for implicit (standard) constraints.
Lev Walkinf15320b2004-06-03 03:38:44 +0000524
Lev Walkin4d852802014-10-12 17:46:13 -07005250.7.8: 2004-Jan-31
Lev Walkinf15320b2004-06-03 03:38:44 +0000526
Lev Walkin4d852802014-10-12 17:46:13 -0700527 * SET now rejects duplicate fields in the data stream.
Lev Walkinf15320b2004-06-03 03:38:44 +0000528
Lev Walkin4d852802014-10-12 17:46:13 -07005290.7.7: 2004-Jan-25
Lev Walkinf15320b2004-06-03 03:38:44 +0000530
Lev Walkin4d852802014-10-12 17:46:13 -0700531 * Added types: GeneralizedTime and UTCTime.
Lev Walkinf15320b2004-06-03 03:38:44 +0000532
Lev Walkin4d852802014-10-12 17:46:13 -07005330.7.6: 2004-Jan-24 T-version-0-7-6
Lev Walkinf15320b2004-06-03 03:38:44 +0000534
Lev Walkin4d852802014-10-12 17:46:13 -0700535 * DER encoding of a SET OF now involves dynamic sorting.
Lev Walkinf15320b2004-06-03 03:38:44 +0000536
Lev Walkin4d852802014-10-12 17:46:13 -07005370.7.5: 2004-Jan-24 T-version-0-7-5
Lev Walkinf15320b2004-06-03 03:38:44 +0000538
Lev Walkin4d852802014-10-12 17:46:13 -0700539 * DER encoding of a SET with untagged CHOICE
540 now involves dynamic sorting.
Lev Walkinf15320b2004-06-03 03:38:44 +0000541
Lev Walkin4d852802014-10-12 17:46:13 -07005420.7.0: 2004-Jan-19 T-version-0-7-0
Lev Walkinf15320b2004-06-03 03:38:44 +0000543
Lev Walkin4d852802014-10-12 17:46:13 -0700544 * A bunch of DER encoders is implemented.
Lev Walkinf15320b2004-06-03 03:38:44 +0000545
Lev Walkin4d852802014-10-12 17:46:13 -07005460.6.6: 2004-Jan-11
Lev Walkinf15320b2004-06-03 03:38:44 +0000547
Lev Walkin4d852802014-10-12 17:46:13 -0700548 * Implemented CHOICE decoder.
549 * Implemented destructors support.
Lev Walkinf15320b2004-06-03 03:38:44 +0000550
Lev Walkin4d852802014-10-12 17:46:13 -07005510.6.5: 2004-Jan-03
Lev Walkinf15320b2004-06-03 03:38:44 +0000552
Lev Walkin4d852802014-10-12 17:46:13 -0700553 * Implemented SET decoder.
554 * Implemented SET OF and SEQUENCE OF decoders.
Lev Walkinf15320b2004-06-03 03:38:44 +0000555
Lev Walkin4d852802014-10-12 17:46:13 -07005560.6.4: 2003-Dec-31
Lev Walkinf15320b2004-06-03 03:38:44 +0000557
Lev Walkin4d852802014-10-12 17:46:13 -0700558 * Implemented BOOLEAN, NULL, ENUMERATED decoders.
559 * Implemented OCTET STRING decoder.
560 * Implemented BIT STRING decoder.
Lev Walkinf15320b2004-06-03 03:38:44 +0000561
Lev Walkin4d852802014-10-12 17:46:13 -07005620.6: 2003-Dec-30
Lev Walkinf15320b2004-06-03 03:38:44 +0000563
Lev Walkin4d852802014-10-12 17:46:13 -0700564 * First decoding of a BER-encoded structure!
Lev Walkinf15320b2004-06-03 03:38:44 +0000565
Lev Walkin4d852802014-10-12 17:46:13 -07005660.5: 2003-Dec-28
Lev Walkinf15320b2004-06-03 03:38:44 +0000567
Lev Walkin4d852802014-10-12 17:46:13 -0700568 * Framework and most of the compiler backbone coding done.
Lev Walkinf15320b2004-06-03 03:38:44 +0000569
Lev Walkin4d852802014-10-12 17:46:13 -07005700.1: 2003-Nov-28
Lev Walkinf15320b2004-06-03 03:38:44 +0000571
Lev Walkin4d852802014-10-12 17:46:13 -0700572 * Programming started.
Lev Walkin6d67d912004-10-05 06:39:35 +0000573
574=== Bug importance disclosure terms ===
575
576SEVERITY.
577 This term applies to the frequence the particular construct is used
578 in the real world. The higher the frequency, the more chances of triggering
579 this bug.
Lev Walkin4d852802014-10-12 17:46:13 -0700580 low: The ASN.1 specifications which could trigger
581 this kind of bug are not widespread.
582 medium: The particular ASN.1 construct is used quite often,
583 so the chance of triggering an error is considerable.
584 high: This fix is considered urgent, or the particular ASN.1
585 construct triggering this bug is in wide use.
Lev Walkin6d67d912004-10-05 06:39:35 +0000586
587SECURITY IMPACT.
588 This term applies to the amount of potential damage a bug exploitation
589 could cause.
Lev Walkin4d852802014-10-12 17:46:13 -0700590 none: No malicious exploitation is possible.
591 low: The local exploitation is unlikely; the remote exploitation
592 is not possible.
593 medium: The remote exploitation is possible when a particular ASN.1
594 construct is being used. If possible, only hard failure, spin
595 or memory leak are the possible outcome: no shellcode
596 injection could possibly be carried by the attack.
597 high: The remote shellcode injection is possible, or the bug is
598 otherwise remotely exploitable for most specifications.
Lev Walkin6d67d912004-10-05 06:39:35 +0000599