-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
od: incorrect file offsets after first 16 bytes
* I observed the file offsets incorrectly jumped from 0 to 17, instead of 0 to 16 * When debugging this I discovered the formatting routines were modifying the value of $data by appending pad bytes * Fix offsets issue by not modifying the value of $data * Using global $len in the format routines is also not correct since the input loop was previously changed and $len will always be 1 * Remove global variable $upformat and provide the unpack format directly to unpack() * Remove unsupported -a flag from the SYNOPSIS
- Loading branch information
Showing
1 changed file
with
44 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters