projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2453dff
)
Fix bug found by warning.
author
Michael J. Spencer
<bigcheesegs@gmail.com>
Thu, 15 Mar 2012 17:49:29 +0000
(17:49 +0000)
committer
Michael J. Spencer
<bigcheesegs@gmail.com>
Thu, 15 Mar 2012 17:49:29 +0000
(17:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152812
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Object/COFFObjectFile.cpp
patch
|
blob
|
history
diff --git
a/lib/Object/COFFObjectFile.cpp
b/lib/Object/COFFObjectFile.cpp
index fe22242538286b640b5137624513a5d6abacf7e5..22894a348cfa6dfac0ed7a838376bcb76fb32610 100644
(file)
--- a/
lib/Object/COFFObjectFile.cpp
+++ b/
lib/Object/COFFObjectFile.cpp
@@
-311,7
+311,8
@@
error_code COFFObjectFile::getSectionName(DataRefImpl Sec,
// Check for string table entry. First byte is '/'.
if (name[0] == '/') {
uint32_t Offset;
- name.substr(1).getAsInteger(10, Offset);
+ if (name.substr(1).getAsInteger(10, Offset))
+ return object_error::parse_failed;
if (error_code ec = getString(Offset, name))
return ec;
}