Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appimage_read_file_into_buffer_following_symlinks #9

Merged
merged 6 commits into from
Sep 11, 2018
Merged

Conversation

TheAssassin
Copy link
Member

Fixes #1.

@TheAssassin
Copy link
Member Author

Was quite a challenge to get to this point (I had to read into a lot of code, and performed quite some refactoring to make the code more maintainable), but this should do the job.

@kbroulik please review/test.

@TheAssassin TheAssassin self-assigned this Sep 9, 2018
@TheAssassin TheAssassin added the enhancement New feature or request label Sep 9, 2018
#ifdef STANDALONE
fprintf(stderr, "failed to read data into buffer: %s\n", archive_error_string(a));
#endif
return false;

Choose a reason for hiding this comment

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

Don't you leak the buffer here, given you don't pass it outside for manual free() but you also don't dispose of it in here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, it must be free()d of course.

@TheAssassin
Copy link
Member Author

@kbroulik and I tested this code with a lot of AppImages, and it appears to work fine.

@TheAssassin TheAssassin merged commit 705935f into master Sep 11, 2018
@TheAssassin TheAssassin deleted the issue-1 branch September 11, 2018 10:59
@probonopd
Copy link
Member

Great. Thanks @kbroulik and @TheAssassin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants