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

Fix possible memory leak in MachOFormat::symtabCommand() method. #331

Merged
merged 1 commit into from
Jun 10, 2018

Conversation

Alexander-Alekseev
Copy link
Contributor

The symtabCommand method was exited without releasing the 'symbolTable' pointer.

The symtabCommand method was exited without releasing the 'symbolTable' pointer.
@s3rvac s3rvac self-requested a review June 10, 2018 04:58
@s3rvac s3rvac self-assigned this Jun 10, 2018
@s3rvac s3rvac merged commit 1fc677b into avast:master Jun 10, 2018
@s3rvac
Copy link
Member

s3rvac commented Jun 10, 2018

Nice catch, thanks!

Maroc-OS added a commit to Maroc-OS/retdec that referenced this pull request Jul 3, 2018
Unify build visibility for all projects to avoid warnings "direct access in function: * from file: * to global weak symbol".

PS: used same function 'append_if' from LLVM Project CMakeLists.txt file

This will fix avast#331
Maroc-OS added a commit to Maroc-OS/retdec that referenced this pull request Jul 3, 2018
FIX: avast#331 Unify build visibility for all projects
Maroc-OS added a commit to Maroc-OS/retdec that referenced this pull request Jul 3, 2018
PeterMatula pushed a commit that referenced this pull request Jul 10, 2018
* Fix compiler warning (unused variable 'ai')

* Eliminate "lib*.a(filexx.cpp.o)" has no symbols on macOS

On macOS there is some warnings about object that has no symbols in it, this is needed to be fixed to make building more clean and clear.

example of build log :
```
[ 94%] Linking CXX static library libretdec-bin2llvmir.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libretdec-bin2llvmir.a(idioms_borland.cpp.o) has no symbols
```

* FIX: #331 Unify build visibility for all projects

Unify build visibility for all projects to avoid warnings "direct access in function: * from file: * to global weak symbol".

PS: used same function 'append_if' from LLVM Project CMakeLists.txt file

This will fix #331
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.

2 participants