fix: audit cleanup — themed close button, stale popup dismiss, bitfield clamp, scanner guard, process sort

This commit is contained in:
IChooseYou
2026-03-04 11:15:04 -07:00
committed by IChooseYou
parent 5944dbdc81
commit f4c7e9327d
6 changed files with 21 additions and 6 deletions

View File

@@ -303,7 +303,7 @@ struct Node {
QJsonObject bm = v.toObject();
BitfieldMember m;
m.name = bm["name"].toString();
m.bitOffset = (uint8_t)bm["bitOffset"].toInt(0);
m.bitOffset = (uint8_t)qBound(0, bm["bitOffset"].toInt(0), 255);
m.bitWidth = (uint8_t)qBound(1, bm["bitWidth"].toInt(1), 64);
n.bitfieldMembers.append(m);
}