ChangeLog 13.3 KB
Newer Older
Lev Walkin's avatar
Lev Walkin committed
1

Lev Walkin's avatar
Lev Walkin committed
2
0.9.9:	2005-Feb-22
Lev Walkin's avatar
Lev Walkin committed
3

Lev Walkin's avatar
Lev Walkin committed
4
5
	* First release of XER (XML) decoding implementation (somewhat
	  experimental).
Lev Walkin's avatar
Lev Walkin committed
6
7
	* ANY allocation routine fixed.
	  Reported by <mikko.ahonen@elma.net>.
Lev Walkin's avatar
Lev Walkin committed
8
	* Fixed tag parsing (tags like "[ 0 ]" were not supported).
Lev Walkin's avatar
Lev Walkin committed
9
	* Compiler now checks for duplicate ASN.1 types across modules.
Lev Walkin's avatar
Lev Walkin committed
10

11
0.9.8:	2005-Jan-17
Lev Walkin's avatar
Lev Walkin committed
12
13
14
15
16
17
18
19

	* [NEW PLATFORM] Compiled and tested on Linux @ alpha64 (LP64).
	  Some code needed to be fixed regarding int-long conversions
	  (mostly inside the test suite), and floating point handling
	  code needed to be restructured to handle signalling NAN and
	  other floating point exceptions quietly. Smooth transition!
	* [NEW PLATFORM] Compiled and tested on Sun Solaris 9 @ sparc.
	  Improved includes/defines of/for system headers.
Lev Walkin's avatar
Lev Walkin committed
20
	* -X command line option added to asn1c to generate XML DTD.
Lev Walkin's avatar
Lev Walkin committed
21
	* Empty SEQUENCE and SET clauses are now allowed.
22
	* Removed confusion between &xNN; and &#xNN; in enber and unber.
23
24
	* Removed order dependency in DEFAULT references to ENUMERATED
	  identifiers (./tests/68-*-OK.asn1).
25
	* ber_dec_rval_t renamed into asn_dec_rval_t: more generality.
26
27
28
	* Extensions in CHOICE types are properly marked as non-pointers
	  (Test case 59) (Severity: medium, Secruity impact: medium)
	  Reported by <roman.pfender@sdm.de>.
29
30
31
	* Tagged CHOICE type is now supported again.
	  (Test case 59) (Severity: low, Security impact: low)
	  Reported by <orlinkata@dir.bg>.
Lev Walkin's avatar
Lev Walkin committed
32
	* Implemented der_encode_to_buffer() procedure.
Lev Walkin's avatar
Lev Walkin committed
33
34
35
36
37
38

0.9.7.1:	2004-Oct-12

	* Fixed automatic tagging for extensions of compound types.
	* Fixed ParametrizedReference parsing: {} are now recognized.

39
0.9.7:	2004-Oct-11
Lev Walkin's avatar
Lev Walkin committed
40

Lev Walkin's avatar
Lev Walkin committed
41
42
43
	* Finished CANONICAL-XER implementation by adding SET and SET OF
	  canonical ordering support.
	* Fixed unber(1) limits controlling logic.
Lev Walkin's avatar
Lev Walkin committed
44
	* Removed C99'izm from the x509dump, now understood by older compilers.
Lev Walkin's avatar
Lev Walkin committed
45
46
	* Enhanced UTF8String constraint validation, now it checks
	  for the minimal encoding length; API of UTF8String_length() changed.
47
48
49
	* Fixed SEQUENCE dealing with premature termination of the
	  optionals-laden indefinite length structure. The code was previously
	  refusing to parse such structures.
50
51
	* Fixed explicitly tagged ANY type encoding and decoding
	  (Severity: medium, Secruity impact: low).
52
53
54
	* Fixed CHOICE code spin when indefinite length structures appear
	  in the extensions (Severity: medium, Security impact: medium).
	  Reported by <siden@ul-gsm.ru>.
55
	* BIT STRING now stores the number of unused octets in a separate field.
Lev Walkin's avatar
Lev Walkin committed
56

57
0.9.6:	2004-Sep-29
58

59
60
	* Added several security firewalls: decoder's stack usage control
	  and the stricter checking of the TLV length.
Lev Walkin's avatar
Lev Walkin committed
61
	* Implemented BASIC-XER encoding support (X.693).
62
	* Implemented unber(1) and enber(1) for BER<->XML translation.
Lev Walkin's avatar
Lev Walkin committed
63
	* Implemented CGI for online ASN.1 compilation (asn1c/webcgi).
64
	* Implemented the sample X.509 decoder (./examples/sample.source.PKIX1).
Lev Walkin's avatar
Lev Walkin committed
65
	* NamedType is now supported for SET OF/SEQUENCE OF type.
Lev Walkin's avatar
Lev Walkin committed
66
67
	* Added -fno-constraints option to asn1c, which disabled generation of
	  ASN.1 subtype constraints checking code.
Lev Walkin's avatar
Lev Walkin committed
68
	* Added ASN1C_ENVIRONMENT_VERSION and get_asn1c_environment_version().
Lev Walkin's avatar
Lev Walkin committed
69
	* Fixed ANY type decoding (Severity: high, Secruity impact: low).
70
71
72
73
	* Fixed BER decoder restartability problem with certain primitive
	  types (BOOLEAN, INTEGER, and REAL). The problem occured when the
	  encoding of such type is split between several bytes.
	  (Severity: high, Security impact: low)
74
	* Support for cross-referencing type definitions (updated ./tests/43-*).
Lev Walkin's avatar
Lev Walkin committed
75
	* Fixed pretty-printing of the REAL type. Added lots of test cases.
76
	* Renamed asn1_* into asn_* in function and type names.
77
	* Updated documentation.
78

Lev Walkin's avatar
Lev Walkin committed
79
0.9.5:	2004-Sep-17
Lev Walkin's avatar
Lev Walkin committed
80
81
82
83
84
85
86
87

	* Fixed CER (common BER) decoder code. See check-25.c/VisibleString
	  case for details. X.690 specifies that inner structures in BER
	  encoding must be tagged by stripping off the outer tag for each
	  subsequent containment level. See also X.690: 8.21.5.4 and
	  the "Spouse" case in A.3.
	  (Severity: medium, Security impact: low)
	* Added converters between any generic type and the ANY type.
Lev Walkin's avatar
Lev Walkin committed
88
89
	* Parser fixed: Information Object Class fields may be taged.
	* Parser fixed: tagged types inside SEQUENCE OF/SET OF support.
90
91
92
	* Improved DEFAULT Value parsing and pretty-printing.
	* Condition on distinct tags checker was incorrectly dealing with
	  tagged CHOICE types. Fixed. Modified tests/37-indirect-choice-OK.asn1
Lev Walkin's avatar
Lev Walkin committed
93
	* Improved type name generation code ("struct foo" vs "foo_t").
94
95
	* Fixed constraint checking code incorrectly dealing with imported
	  types with constraint values defined in other modules.
Lev Walkin's avatar
Lev Walkin committed
96
97
	* Real REAL support! (Haven't tested denormals support yet!)
	  See skeletons/tests/check-REAL.c
Lev Walkin's avatar
Lev Walkin committed
98

Lev Walkin's avatar
Lev Walkin committed
99
0.9.4:	2004-Sep-10
Lev Walkin's avatar
Lev Walkin committed
100
101
102

	* More support for recursive type definitions.
	* Explicit support for ANY type decoding.
Lev Walkin's avatar
Lev Walkin committed
103
104
105
	* Refactored tags processing code.
	* Fixed constraints checking code: non-exploitable buffer overflow.
	  (Severity: medium, Security impact: low)
Lev Walkin's avatar
Lev Walkin committed
106

Lev Walkin's avatar
Lev Walkin committed
107
0.9.3:	2004-Sep-07
Lev Walkin's avatar
Lev Walkin committed
108

109
110
	* Extended constraints support in parametrized types.
	* Better support for parametrization and constraints handling.
Lev Walkin's avatar
Lev Walkin committed
111
	* Better handling of recursive type definitions.
Lev Walkin's avatar
Lev Walkin committed
112
	* Added support for ANY type.
Lev Walkin's avatar
Lev Walkin committed
113

114
115
0.9.2:	2004-Aug-24

Lev Walkin's avatar
Lev Walkin committed
116
117
	* More flexible subtype constraints handling, with relaxed
	  PER visibility rules for actual constraints checking code generator.
118
119
	* Indirect references in constraints resolver code fixed.
	* Avoided compilation warning on gcc 3.3.3 systems.
Lev Walkin's avatar
Lev Walkin committed
120
	* Better ValueSet printing.
121

122
123
124
125
126
127
0.9.1:	2004-Aug-23

	* Documentation updated: doc/asn1c-usage.pdf
	* Fixed OBJECT IDENTIFIER human-readable printing.
	  Reported by <siden@ul-gsm.ru>.

Lev Walkin's avatar
date    
Lev Walkin committed
128
0.9:	2004-Aug-23
Lev Walkin's avatar
Lev Walkin committed
129
130

	* Reworked subtype constraints handling, aiming at PER-applicability.
Lev Walkin's avatar
Lev Walkin committed
131
132
	* BOOLEAN and NULL are now implemented in terms of native int type.
	* Compiler now links in only necessary skeleton files.
Lev Walkin's avatar
Lev Walkin committed
133
	* -t option added to asn1c to ease manual BER/CER/DER decoding.
Lev Walkin's avatar
Lev Walkin committed
134
135
	* Added support COMPONENTS OF construct.
	* Numerous parser fixes and enhancements.
136
	* Better constraint failure reporting.
Lev Walkin's avatar
Lev Walkin committed
137

Lev Walkin's avatar
Lev Walkin committed
138
139
140
141
142
0.8.19:	2004-Aug-18

	* Fixed BER encoder (problem encoding large tag values)
	  (Severity: medium, Security impact: low)

Lev Walkin's avatar
Lev Walkin committed
143
144
145
146
147
0.8.18:	2004-Aug-12

	* Parser: fixed multiple IMPORTS problem (incorrect assertion).
	* Parser: constraints extensibility parsing fix.

Lev Walkin's avatar
Lev Walkin committed
148
0.8.17:	2004-Aug-11
Lev Walkin's avatar
Lev Walkin committed
149
150

	* Improved compiler output: duplicate #includes eliminated.
Lev Walkin's avatar
Lev Walkin committed
151
	* Win32 portability fixes.
Lev Walkin's avatar
Lev Walkin committed
152
	* More compatibility with C++ or non-GCC compilers.
Lev Walkin's avatar
Lev Walkin committed
153

Lev Walkin's avatar
Lev Walkin committed
154
155
156
157
0.8.16:	2004-Jul-22

	* Fixed application-level problem in SET OF/SEQUENCE OF array cleanup.
	  (Severity: medium, Security impact: low)
158
	* Improved asn_GT2time() and added asn_time2{GT,UT}() functions.
Lev Walkin's avatar
Lev Walkin committed
159
	* BIT STRING pretty-printing.
Lev Walkin's avatar
Lev Walkin committed
160

161
0.8.15:	2004-Jul-20
Lev Walkin's avatar
Lev Walkin committed
162
163
164

	* Fixed parser: memory leak in free_struct code for SET OF/SEQUENCE OF.
	  (Severity: high, Security impact: medium)
Lev Walkin's avatar
typo    
Lev Walkin committed
165
	* Fixed parser: invalid memory reference in code constructing tags.
166
167
168
169
170
171
172
173
174
175
176
	  (Test case 48) (Severity: high, Security impact: medium)
	  When encoding data for certain ASN.1 specifications containing
	  explicit tags, the tag is always written incorrectly due to
	  incorrect memory reference. The encoding will almost always produce
	  unparseable data and might well reference unmapped region so program
	  would produce segmentation violation. Fortunately, memory is
	  read, not written, so remote exploits cannot execute arbitrary
	  code and triggering unmapped memory reference is highly unlikely
	  even it attacker knows the code (basically, the compiler should place
	  asn1_DEF_... right before the end of the mapped memory region, which
	  is extremely rare).
Lev Walkin's avatar
Lev Walkin committed
177
	* Improved INTEGER type printing.
Lev Walkin's avatar
Lev Walkin committed
178

Lev Walkin's avatar
Lev Walkin committed
179
180
181
182
183
184
0.8.14:	2004-Jun-30

	* Fixed compiler: extensibility of CHOICE and SET type has not been
	  taken into account during table construction.
	  (Test case 47) (Severity: high, Security impact: low)

185
186
187
188
189
190
191
192
193
0.8.13:	2004-Jun-29

	* Fixed compiler: the skip values for IMPLICIT tagging were broken
	  in some complex cases where one type is defined using another.
	  (Test case 46) (Severity: medium, Security impact: low).
	* Added -fknown-extern-type command line parameter to asn1c.
	* Removed -N command line flag and underlying functionality
	  to honor KISS principle.

Lev Walkin's avatar
Lev Walkin committed
194
0.8.12:	2004-Jun-17
Lev Walkin's avatar
fixes    
Lev Walkin committed
195

Lev Walkin's avatar
Lev Walkin committed
196
197
198
199
	* RELATIVE-OID and OBJECT IDENTIFIER encoders/decoders are not bound
	  anymore to an integer type of specific size (unsigned long). The
	  size of an integer must be provided explicitly.
	  See {OBJECT_IDENTIFIER|RELATIVE_OID}_{get|set}_arcs().
Lev Walkin's avatar
fixes    
Lev Walkin committed
200
	* SEQUENCE BER decoder fixed again for complex CHOICE case
Lev Walkin's avatar
Lev Walkin committed
201
	  (Test case 44) (Severity: medium, Security impact: low).
Lev Walkin's avatar
fixes    
Lev Walkin committed
202

203
204
0.8.11:	2004-Jun-05

Lev Walkin's avatar
typo    
Lev Walkin committed
205
	* Enforced stricter conformance with C standards.
Lev Walkin's avatar
fixes    
Lev Walkin committed
206
	* SEQUENCE BER decoder is now equipped with the sorted map
Lev Walkin's avatar
Lev Walkin committed
207
	  in case of complex CHOICE descendants. Test case 44 created.
208

Lev Walkin's avatar
Lev Walkin committed
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
0.8.10:	2004-Jun-02

	* Added const qualifier where necessary.
	* Changed position of outmost_tag fetcher within asn1_TYPE_descriptor_t
	  structure.

0.8.9:	2004-May-26

	* Added *_{get|set}_arcs_*() functions for OBJECT IDENTIFIER
	  and RELATIVE-OID, together with test cases.

0.8.8:	2004-May-09

	* Introduced subtype constraints support (incomplete!).
	* Fixed compiler. If the last member of the SEQUENCE is OPTIONAL
	  and absent in the encoding, and the type is extensible (...) or
	  EXTENSIBILITY IMPLIED flag is set, then the structure could not
	  be correctly decoded. (Severity: high, Security impact: low).
	* Compiler: fixed recursive ASN.1 types inclusion (Severity: low,
	  Security impact: none).
	* Parser: IMPORTS/FROM fixes, now allowing multiple sections.
Lev Walkin's avatar
Lev Walkin committed
230
231
	* NEW PLATFORM: Compiled and tested on MacOS X (@ PowerPC).
	  No major portability issues experienced.
Lev Walkin's avatar
Lev Walkin committed
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337

0.8.7:	2004-Apr-11	T-version-0-8-7

	* Fixed SEQUENCE BER decoder: if the last member of the SEQUENCE is
	  OPTIONAL and absent in the encoding, RC_FAIL was returned instead
	  of RC_OK (Severity: high, Security impact: low).
	* Added test case to check the above problem.
	* Added test case to check -fnative-integers mode.

0.8.6:	2004-Apr-03	T-version-0-8-6

	* Fixed compiler output for embedded ASN.1 structures.

0.8.5:	2004-Mar-28	T-version-0-8-5

	* Fixed ber_tlv_length() computation problem (Severity: blocker,
	  Security impact: none).
	  Reported by <vss@high.net.ru>

0.8.4:	2004-Mar-22

	* Removed RC_ITAG enumeration element from BER decoder.
	  This return code did not have much practical value.

0.8.3:	2004-Mar-14	T-version-0-8-3

	* Fixed SET::BER decoder: restart after reaching a buffer boundary
	  weas broken (Severity: blocker, Security impact: low).
	* Fixed OCTET STRING::BER decoder: restart after reaching a buffer
	  boundary was broken (Severity: blocker, Security impact: low).
	  Reported by <vss@high.net.ru>
	* Added test cases to check decoders restartability.
	* Slightly more general INTEGER2long decoder.
	* Allowed nested /* C-type */ comments, as per X.680:2002.

0.8.2:	2004-Mar-01	T-version-0-8-2

	* Fixed SEQUENCE BER decoder: an OPTIONAL element was required, where
	  should not have been (Severity: major; Security impact: low).
	* Fixed print_struct pointer inheritance.
	* Added -fno-c99 and -funnamed-unions

0.8.1:	2004-Feb-22

	* -R switch to asn1c: Omit support code, compile only the tables.
	* Introduced NativeInteger pseudotype.
	* Corrected the informal print_struct()'s output format.

0.8.0:	2004-Feb-03	T-version-0-8-0

	* Some documentation is created (a .pdf and a short manual page).
	* Last touches to the code.

0.7.9:	2004-Feb-01	T-version-0-7-9

	* Human readable printing support.
	* Support for implicit (standard) constraints.

0.7.8:	2004-Jan-31

	* SET now rejects duplicate fields in the data stream.

0.7.7:	2004-Jan-25

	* Added types: GeneralizedTime and UTCTime.

0.7.6:	2004-Jan-24	T-version-0-7-6

	* DER encoding of a SET OF now involves dynamic sorting.

0.7.5:	2004-Jan-24	T-version-0-7-5

	* DER encoding of a SET with untagged CHOICE
	  now involves dynamic sorting.

0.7.0:	2004-Jan-19	T-version-0-7-0

	* A bunch of DER encoders is implemented.

0.6.6:	2004-Jan-11

	* Implemented CHOICE decoder.
	* Implemented destructors support.

0.6.5:	2004-Jan-03

	* Implemented SET decoder.
	* Implemented SET OF and SEQUENCE OF decoders.

0.6.4:	2003-Dec-31

	* Implemented BOOLEAN, NULL, ENUMERATED decoders.
	* Implemented OCTET STRING decoder.
	* Implemented BIT STRING decoder.

0.6:	2003-Dec-30

	* First decoding of a BER-encoded structure!

0.5:	2003-Dec-28

	* Framework and most of the compiler backbone coding done.

0.1:	2003-Nov-28

	* Programming started.
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363

=== Bug importance disclosure terms ===

SEVERITY.
    This term applies to the frequence the particular construct is used
    in the real world. The higher the frequency, the more chances of triggering
    this bug.
	low:	The ASN.1 specifications which could trigger
		this kind of bug are not widespread.
	medium:	The particular ASN.1 construct is used quite often,
		so the chance of triggering an error is considerable.
	high:	This fix is considered urgent, or the particular ASN.1
		construct triggering this bug is in wide use.

SECURITY IMPACT.
    This term applies to the amount of potential damage a bug exploitation
    could cause.
	low:	The local exploitation is unlikely; the remote exploitation
		is impossible.
	medium:	The remote exploitation is possible when a particular ASN.1
		construct is being used. If possible, only hard failure, spin
		or memory leak are the possible outcome: no shellcode
		injection could possibly be carried by the attack.
	high:	The remote shellcode injection is possible, or the bug is
		otherwise remotely exploitable for most specifications.