Ran the static analyzer on the codebase and found a few things.

llvm-svn: 160338
This commit is contained in:
Greg Clayton
2012-07-17 03:23:13 +00:00
parent 24a8378c4f
commit 23f59509a8
42 changed files with 544 additions and 641 deletions

View File

@@ -877,14 +877,11 @@ ObjectFileELF::ParseDynamicSymbols()
DataExtractor dynsym_data;
if (ReadSectionData(dynsym, dynsym_data))
{
const unsigned section_size = dynsym_data.GetByteSize();
unsigned offset = 0;
unsigned cursor = 0;
while (cursor < section_size)
{
offset = cursor;
if (!symbol.Parse(dynsym_data, &cursor))
break;