BANDA-Swift · Issue 520 · 2 December 2026

Why BANDA 0.4.0 left memory-safety alarms unsupported

Across five retained SV-COMP cases, every one of the 952 unsupported buffer-overflow alarms failed the same input check. For dereference alarms, replay identified a separate failure during inference. Two uthash drivers encountered an unmodelled call to memcmp 83 times. BusyBox encountered an unmodelled variadic intrinsic 11 times.

Overflow stops before inference

The frozen base is the benchmark’s saved verifier output. BANDA receives an alarms.json file from it. “Report importer” means the Swift code inside BANDA that reads each alarm and turns it into a question BANDA can analyze. For a memory read, the question is “Do all the bytes read fit inside the buffer?” Swift code that builds this question

One real read from BusyBox basename-2

The verifier identified a memory object with ID 1869. Think of the object as a buffer. The number is the verifier’s label for that buffer. The matching suffix on offset.1869 and size.1869 tells BANDA that both measurements refer to the same buffer.

Actual evidence and an illustrative input BANDA could use
FieldFrozen base suppliedExample BANDA accepts
offset.1869 · starting byte, counting from zeronull[4, 7]
size.1869 · bytes in the buffer[11, 11][11, 11]
width · bytes read at once[1, 1][1, 1]

An interval gives the smallest and largest possible values, inclusive. Here the verifier knew the buffer was exactly 11 bytes long and the read used exactly one byte. It supplied no starting position. Byte 10 would fit and byte 11 would be past the end. BANDA v0.4.0 therefore marks this alarm unavailableSafetyProperty before analysis.

The example offset [4, 7] is invented to show the accepted format. It means the read could start at byte 4, 5, 6 or 7. BANDA could then form the check 0 ≤ offset and offset + width ≤ size. Even at byte 7, the read fits because 7 + 1 ≤ 11. A finite interval has a numerical lower and upper bound. Another actual read in this case had size.1866 = [0, "+inf"], which supplies no finite upper bound.

“One target object” is a restriction in this release. If a pointer might refer to either of two buffers, the verifier can supply an offset and size for each buffer under different IDs. BANDA v0.4.0 accepts only one such pair, even when each candidate has its own measurements.

First failed evidence requirement per selected overflow alarm
Verifier evidenceAlarms
One object, null offset551
Multiple offset keys213
No offset key186
One finite offset, size or length unavailable or unbounded2

BusyBox basename-2 illustrates why a single change would reach only part of the sample. Thirteen of its 26 alarms have one object and a null offset. The other thirteen have multiple object candidates. Supporting multiple targets would still require enough evidence to check each possible access.

Dereference failures depend on the program

Release CLI replay of alarms labelled externalAPIResolution
CaseUnmodelled operation and source lineAlarms
uthash BER test2-2memcmp, line 82447
uthash BER test7-1memcmp, line 72536
BusyBox expand-2llvm.va_start.p0, line 265111

The line identifies the operation that stopped inference, which can differ from the alarm location. Replaying the three basename-2 dereference alarms also produced one shared failure. BANDA could not translate an i64 constant-data operand of a subtraction at graph node 56. The diagnostic gives no source location for that subtraction. The retained expand-2 results additionally attribute 46 alarms to unsigned division and three to ambiguous source alignment.

Scope and implications

The full benchmark recorded 23,003 unsupported overflow alarms out of 23,099 selected. The five-case breakdown above comes from joining retained BANDA alarm IDs to the corresponding verifier sites. The external-call counts come from rerunning those selected sites on their prepared LLVM modules using release image 0.4.0-3d1216b27df0. An earlier inspection of the development checkout pointed to a different adapter path. The release importer linked above is the one relevant to these results.

The evidence establishes where BANDA declines these alarms. It does not establish why the verifier lost every individual offset, the distribution across the full run, or how many verdicts would become refuted after a change. For uthash, a focused experiment would model memcmp and replay the same 83 alarms to measure which blocker appears next. For overflow, the largest observed group calls for tracing a single missing offset from a known target back through the verifier.

Benchmark report and reproduction details · Related bounds-evidence issue