Skip to content

Conversation

@mthrok
Copy link
Contributor

@mthrok mthrok commented Feb 1, 2021

sox_format_t.tell_off should be representing current offset in file, but there are cases it does not. This was causing segmentation fault in some cases. This PR fixes it by replacing it with ftell call and add extra check so that if the same thing should happen, it will throw runtime error instead of segmentation fault.

See also: internal test log

Copy link
Contributor

@vincentqb vincentqb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Looks like internal tests will be enough for now.

@mthrok mthrok merged commit 828df46 into pytorch:master Feb 1, 2021
@mthrok mthrok deleted the fix-segfault branch February 1, 2021 18:33
@mthrok mthrok mentioned this pull request Feb 25, 2021
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants