Skip to content

Commit

Permalink
Merge pull request #65 from ni-mheppner/wav-seek-limitation
Browse files Browse the repository at this point in the history
Use 32bit integer to enforce byte alignment while parsing wav sources
  • Loading branch information
ni-mheppner authored Sep 20, 2023
2 parents 95262f7 + c7b0e9e commit 55e67cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion audiostream/src/ni/media/audio/wav/wav_source.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ auto readWavHeader( Source& src )
}
}

src.seek( ( currentOffset + riffTag.length + 1 ) & 0xfffffe, std::ios_base::beg );
src.seek( ( currentOffset + riffTag.length + 1 ) & 0xfffffffe, std::ios_base::beg );
}

throw std::runtime_error( "Could not read \'data\' tag." );
Expand Down
2 changes: 1 addition & 1 deletion audiostream/test/test_files/fuzz_files/21.wav
Git LFS file not shown

0 comments on commit 55e67cc

Please sign in to comment.