[PATCH 3.12 76/76] X.509: remove possible code fragility: enumeration values not handled

From
Jiri Slaby <hidden>
Date
2016-05-19 09:09:44
Also in
lkml
Reply to
Jiri Slaby, 2016-05-19
From: Antonio Alecrim Jr <redacted>

3.12-stable review patch.  If anyone has any objections, please let me know.

===============

commit eb8948a03704f3dbbfc7e83090e20e93c6c476d2 upstream.

Signed-off-by: Antonio Alecrim Jr <redacted>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jiri Slaby <redacted>
---
 scripts/asn1_compiler.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/scripts/asn1_compiler.c b/scripts/asn1_compiler.c
index db0e5cd34c70..91c4117637ae 100644
--- a/scripts/asn1_compiler.c
+++ b/scripts/asn1_compiler.c
@@ -1353,6 +1353,8 @@ static void render_out_of_line_list(FILE *out)
 			render_opcode(out, "ASN1_OP_END_SET_OF%s,\n", act);
 			render_opcode(out, "_jump_target(%u),\n", entry);
 			break;
+		default:
+			break;
 		}
 		if (e->action)
 			render_opcode(out, "_action(ACT_%s),\n",
-- 
2.8.2
Thread (84 messages) 84 messages, 6 authors, last reply 2016-05-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help