Skip to content

Commit

Permalink
Avoid stack overflow
Browse files Browse the repository at this point in the history
refs: #32
  • Loading branch information
wez committed Jul 13, 2021
1 parent 020176f commit d72ccf0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,16 @@ jobs:
run: cmake .
- name: build
run: cmake --build . --config Release

asan:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: configure
run: cmake -DASAN=on -DCMAKE_BUILD_TYPE=Debug .
- name: build
run: cmake --build .
- name: test
run: tests/test.sh
2 changes: 1 addition & 1 deletion src/extracts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,7 @@ void APar_Print_TrackDetails(TrackInfo *track_info) {
}

void APar_ExtractDetails(FILE *isofile, uint8_t optional_output) {
char uint32_buffer[5];
char uint32_buffer[8];
Trackage track = {0};

AtomicInfo *mvhdAtom = APar_FindAtom("moov.mvhd", false, VERSIONED_ATOM, 0);
Expand Down
Binary file added tests/issue-32.mp4
Binary file not shown.
3 changes: 3 additions & 0 deletions tests/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
set -xe
./AtomicParsley ./tests/issue-32.mp4 -T 1 -t +

0 comments on commit d72ccf0

Please sign in to comment.