fix: eliminate stale verdict poisoning, memory leaks, data races, and per-packet allocations in engine

This commit is contained in:
2026-05-15 02:08:22 +00:00
parent bc25169f41
commit 301c252c43
15 changed files with 222 additions and 163 deletions
+1 -1
View File
@@ -456,7 +456,7 @@ func ctIDFromCtBytes(ct []byte) uint32 {
return 0
}
for _, attr := range ctAttrs {
if attr.Type == 12 { // CTA_ID
if attr.Type == 12 && len(attr.Data) >= 4 { // CTA_ID
return binary.BigEndian.Uint32(attr.Data)
}
}