mirror of
https://github.com/thepigeongenerator/mcaselector-lite
synced 2026-02-08 07:33:35 +01:00
fix: potential NULL-dereference if buffer is corrupt.
This commit is contained in:
@@ -215,6 +215,6 @@ const u8 *nbt_nexttag(const u8 *restrict buf)
|
|||||||
tag = buf;
|
tag = buf;
|
||||||
do {
|
do {
|
||||||
tag = nexttag(tag, &dpt, lens, tags);
|
tag = nexttag(tag, &dpt, lens, tags);
|
||||||
} while (dpt > 0);
|
} while (tag && dpt > 0);
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user