Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions chb/cmdline/reportcmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -1873,6 +1873,9 @@ def is_cmd_delegation(po: 'ProofObligation') -> bool:
fn_arg["type"] = "pointer"
fn_arg["max-length"] = buffersize
fn_arg["size-origin"] = sizeorigin
# Set the buffersize based on the first passthrough argument if unknown from PO.
if not found_fmt_arg and pc_content["buffersize"] == 0:
pc_content["buffersize"] = buffersize

# If we've already found the format string input, treat the remaining arguments
# up to the number of format string specifiers as inputs.
Expand Down