瀏覽代碼

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

Signed-off-by: Antonio Alecrim Jr <antonio.alecrim@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Antonio Alecrim Jr 12 年之前
父節點
當前提交
eb8948a037
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scripts/asn1_compiler.c

+ 2 - 0
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, "ASN1_OP_END_SET_OF%s,\n", act);
 			render_opcode(out, "_jump_target(%u),\n", entry);
 			render_opcode(out, "_jump_target(%u),\n", entry);
 			break;
 			break;
+		default:
+			break;
 		}
 		}
 		if (e->action)
 		if (e->action)
 			render_opcode(out, "_action(ACT_%s),\n",
 			render_opcode(out, "_action(ACT_%s),\n",