| 88 | } |
| 89 | |
| 90 | static void use(int bytes) |
| 91 | { |
| 92 | if (bytes > len) |
| 93 | die("used more bytes than were available"); |
| 94 | len -= bytes; |
| 95 | offset += bytes; |
| 96 | |
| 97 | /* make sure off_t is sufficiently large not to wrap */ |
| 98 | if (signed_add_overflows(consumed_bytes, bytes)) |
| 99 | die("pack too large for current definition of off_t"); |
| 100 | consumed_bytes += bytes; |
| 101 | if (max_input_size && consumed_bytes > max_input_size) |
| 102 | die(_("pack exceeds maximum allowed size")); |
| 103 | display_throughput(progress, consumed_bytes); |
| 104 | } |
| 105 | |
| 106 | /* |
| 107 | * Decompress zstream from the standard input into a newly |
no test coverage detected