Package: ssldump / 0.9b3-6

fix-table-stop.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Description: Fix table stops
 ssldump segfaults when decoding some unknown enumerated values
 because decoder tables end with 0 instead of -1 expected by
 table search routines
Author: Zdenek Salvet <salvet@ics.muni.cz>
Bug-Debian: http://bugs.debian.org/627884
Last-Update: 2016-03-11
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/ssl/ssl.enums.c
+++ b/ssl/ssl.enums.c
@@ -151,7 +151,7 @@ decoder ContentType_decoder[]={
 		"application_data",
 		decode_ContentType_application_data
 	},
-{0}
+{-1}
 };
 
 static int decode_HandshakeType_HelloRequest(ssl,dir,seg,data)
@@ -498,7 +498,7 @@ decoder HandshakeType_decoder[]={
 		"Finished",
 		decode_HandshakeType_Finished
 	},
-{0}
+{-1}
 };
 
 decoder cipher_suite_decoder[]={
@@ -728,7 +728,7 @@ decoder AlertLevel_decoder[]={
 		"fatal",
 		decode_AlertLevel_fatal
 	},
-{0}
+{-1}
 };
 
 static int decode_AlertDescription_close_notify(ssl,dir,seg,data)
@@ -1031,7 +1031,7 @@ decoder AlertDescription_decoder[]={
 		"no_renegotiation",
 		decode_AlertDescription_no_renegotiation
 	},
-{0}
+{-1}
 };
 
 decoder compression_method_decoder[]={
@@ -1095,6 +1095,6 @@ decoder client_certificate_type_decoder[
 		"dss_fixed_dh",
 		decode_client_certificate_type_dss_fixed_dh
 	},
-{0}
+{-1}
 };
 
--- a/ssl/ssl_enum.c
+++ b/ssl/ssl_enum.c
@@ -70,7 +70,7 @@ decoder ContentType_decoder[]={
 		"application_data",
 		decode_ContentType_application_data
 	},
-{0}
+{-1}
 };
 
 static int decode_HandshakeType_hello_request(ssl,dir,seg,data)
@@ -260,7 +260,7 @@ decoder HandshakeType_decoder[]={
 		"finished",
 		decode_HandshakeType_finished
 	},
-{0}
+{-1}
 };
 
 decoder cipher_suite_decoder[]={