Message ID | 20210628222609.01ea12ad@oasis.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | 1729779e0d96e305d29e47c8c97760175ee0b6d8 |
Headers | show |
Series | trace-cmd split: Fix off-by-one error when calculating record len | expand |
diff --git a/tracecmd/trace-split.c b/tracecmd/trace-split.c index 233feb89..9b1a8d7a 100644 --- a/tracecmd/trace-split.c +++ b/tracecmd/trace-split.c @@ -106,7 +106,7 @@ static int write_record(struct tracecmd_input *handle, return 0; } - if (record->size && (record->size < 28 * 4)) + if (record->size && (record->size <= 28 * 4)) len = record->size / 4; time = (unsigned)diff;