Skip to content

Commit ca42e80

Browse files
authored
Fix possible OOB read (#2825)
1 parent 8608856 commit ca42e80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/Sparc/SparcInstPrinter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ void printMembarTag(MCInst *MI, int opNum, SStream *O)
304304
}
305305

306306
bool First = true;
307-
for (unsigned i = 0; i < sizeof(TagNames); i++) {
307+
for (unsigned i = 0; i < ARR_SIZE(TagNames); i++) {
308308
if (Imm & (1ull << i)) {
309309
SStream_concat(O, "%s", (First ? "" : " | "));
310310
SStream_concat0(O, TagNames[i]);

0 commit comments

Comments
 (0)