Skip to contentSkip to conversation

X.509: remove possible code fragility: enumeration values not handled

PATCH In review Antonio Alecrim Jr 2 participants 2 messages Sep 16, 2013 – Sep 25, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 X.509: remove possible code fragility: enumeration values not handled

---
 scripts/asn1_compiler.c | 2 ++
 1 file changed, 2 insertions(+)
scripts/asn1_compiler.c +2 -0
index db0e5cd..91c4117 100644
@@ -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",
Signature · 1 line
1.8.3.1
#1 lore raw

Imported. I wonder if it would be better to abort, though.

David