Revision tags: llvmorg-7.0.1-rc2, llvmorg-7.0.1-rc1 |
|
#
5b2e9682 |
| 24-Oct-2018 |
James Henderson <jh7370@my.bristol.ac.uk> |
Fix llvm-strings crash for negative char values
On Windows at least, llvm-strings was crashing if it encountered bytes that mapped to negative chars, as it was passing these into std::isgraph and st
Fix llvm-strings crash for negative char values
On Windows at least, llvm-strings was crashing if it encountered bytes that mapped to negative chars, as it was passing these into std::isgraph and std::isblank functions, resulting in undefined behaviour. On debug builds using MSVC, these functions verfiy that the value passed in is representable as an unsigned char. Since the char is promoted to an int, a value greater than 127 would turn into a negative integer value, and fail the check. Using the llvm::isPrint function is sufficient to solve the issue.
Reviewed by: ruiu, mstorsjo
Differential Revision: https://reviews.llvm.org/D53509
llvm-svn: 345137
show more ...
|
Revision tags: llvmorg-7.0.0, llvmorg-7.0.0-rc3, llvmorg-7.0.0-rc2, llvmorg-7.0.0-rc1, llvmorg-6.0.1, llvmorg-6.0.1-rc3, llvmorg-6.0.1-rc2, llvmorg-6.0.1-rc1 |
|
#
197194b6 |
| 13-Apr-2018 |
Rui Ueyama <ruiu@google.com> |
Define InitLLVM to do common initialization all at once.
We have a few functions that virtually all command wants to run on process startup/shutdown. This patch adds InitLLVM class to do that all at
Define InitLLVM to do common initialization all at once.
We have a few functions that virtually all command wants to run on process startup/shutdown. This patch adds InitLLVM class to do that all at once, so that we don't need to copy-n-paste boilerplate code to each llvm command's main() function.
Differential Revision: https://reviews.llvm.org/D45602
llvm-svn: 330046
show more ...
|
Revision tags: llvmorg-5.0.2, llvmorg-5.0.2-rc2, llvmorg-5.0.2-rc1, llvmorg-6.0.0, llvmorg-6.0.0-rc3, llvmorg-6.0.0-rc2, llvmorg-6.0.0-rc1, llvmorg-5.0.1, llvmorg-5.0.1-rc3, llvmorg-5.0.1-rc2 |
|
#
6835cac2 |
| 14-Nov-2017 |
Martin Storsjo <martin@martin.st> |
[llvm-strings] Add support for the -a/--all options
They don't actually change nay behaviour, as llvm-strings currently checks the whole object without looking at individual sections anyway.
This a
[llvm-strings] Add support for the -a/--all options
They don't actually change nay behaviour, as llvm-strings currently checks the whole object without looking at individual sections anyway.
This allows using llvm-strings in a context that explicitly passes the -a option.
Differential Revision: https://reviews.llvm.org/D40020
llvm-svn: 318185
show more ...
|
Revision tags: llvmorg-5.0.1-rc1, llvmorg-5.0.0, llvmorg-5.0.0-rc5, llvmorg-5.0.0-rc4, llvmorg-5.0.0-rc3, llvmorg-5.0.0-rc2, llvmorg-5.0.0-rc1, llvmorg-4.0.1, llvmorg-4.0.1-rc3, llvmorg-4.0.1-rc2, llvmorg-4.0.1-rc1, llvmorg-4.0.0, llvmorg-4.0.0-rc4, llvmorg-4.0.0-rc3, llvmorg-4.0.0-rc2 |
|
#
2c3771af |
| 21-Jan-2017 |
Saleem Abdulrasool <compnerd@compnerd.org> |
llvm-strings: remove default for -Wcovered-switch-default
Fix the -Werror build by removing the unnecessary default case in the covered switch. NFC
llvm-svn: 292708
|
#
ba048618 |
| 21-Jan-2017 |
Saleem Abdulrasool <compnerd@compnerd.org> |
llvm-strings: add support for `-t`
Allow printing the file content offset via the `-t` or `--radix` option.
llvm-svn: 292707
|
Revision tags: llvmorg-4.0.0-rc1, llvmorg-3.9.1, llvmorg-3.9.1-rc3, llvmorg-3.9.1-rc2, llvmorg-3.9.1-rc1 |
|
#
f7009b42 |
| 15-Nov-2016 |
Saleem Abdulrasool <compnerd@compnerd.org> |
llvm-strings: support the `-n` option
Permit specifying the match length (the `-n` or `--bytes` option). The deprecated `-[length]` form is not supported as an option. This allows the strings tool
llvm-strings: support the `-n` option
Permit specifying the match length (the `-n` or `--bytes` option). The deprecated `-[length]` form is not supported as an option. This allows the strings tool to display only the specified length strings rather than the hardcoded default length of >= 4.
llvm-svn: 286914
show more ...
|
#
f10a8714 |
| 14-Nov-2016 |
Saleem Abdulrasool <compnerd@compnerd.org> |
Revert "Revert "llvm-strings: support printing the filename""
Change the dynamic files to static in the hope that it will actually fix the transient errors that Ive been unable to reproduce.
llvm-s
Revert "Revert "llvm-strings: support printing the filename""
Change the dynamic files to static in the hope that it will actually fix the transient errors that Ive been unable to reproduce.
llvm-svn: 286891
show more ...
|
#
199b6b94 |
| 14-Nov-2016 |
Renato Golin <renato.golin@linaro.org> |
Revert "llvm-strings: support printing the filename"
Also,
Revert "test: remove the archive before modifying it" Revert "test: explicitly use gnu format"
This reverts commits r286778, r286729 and
Revert "llvm-strings: support printing the filename"
Also,
Revert "test: remove the archive before modifying it" Revert "test: explicitly use gnu format"
This reverts commits r286778, r286729 and r286767, as they are randomly failing on many bots (AArch64, x86_64).
llvm-svn: 286820
show more ...
|
#
8b9be8fd |
| 13-Nov-2016 |
Saleem Abdulrasool <compnerd@compnerd.org> |
llvm-strings: support printing the filename
This adds support for the `-f` or `--print-file-name` option for strings.
llvm-svn: 286767
|
#
be3a2919 |
| 12-Nov-2016 |
Saleem Abdulrasool <compnerd@compnerd.org> |
llvm-strings: trivialise logic until we support more options
Until we have handling for ignoring unloaded sections, simplify the logic to the point of triviality. This fixes the scanning of archive
llvm-strings: trivialise logic until we support more options
Until we have handling for ignoring unloaded sections, simplify the logic to the point of triviality. This fixes the scanning of archives, particularly when embedded in archives.
llvm-svn: 286727
show more ...
|
#
2729786f |
| 12-Nov-2016 |
Saleem Abdulrasool <compnerd@compnerd.org> |
llvm-strings: ensure that the last string is correctly printed
We would ignore the last string that appeared if the file ended with a printable character. Ensure that we get the last string.
llvm-
llvm-strings: ensure that the last string is correctly printed
We would ignore the last string that appeared if the file ended with a printable character. Ensure that we get the last string.
llvm-svn: 286706
show more ...
|
#
2aad0461 |
| 11-Nov-2016 |
Mehdi Amini <mehdi.amini@apple.com> |
Fix build failure, update llvm-strings for the new Error API
llvm-svn: 286563
|
#
2dcea63b |
| 11-Nov-2016 |
Saleem Abdulrasool <compnerd@compnerd.org> |
llvm-strings: explicitly include cctype
Include the cctype header to try to fix windows bots.
llvm-svn: 286558
|
#
030ff0f2 |
| 11-Nov-2016 |
Saleem Abdulrasool <compnerd@compnerd.org> |
llvm-strings: introduce basic strings tool
This is a replacement to binutils' string tool. It prints strings found in a binary (object file, executable, or archive library). It is rather bare and
llvm-strings: introduce basic strings tool
This is a replacement to binutils' string tool. It prints strings found in a binary (object file, executable, or archive library). It is rather bare and not functionally equivalent, however, it lays the groundwork necessary for the strings tool, enabling iterative development of features to reach feature parity.
llvm-svn: 286556
show more ...
|