Closed GoogleCodeExporter closed 9 years ago
You called it:
--- cpp/src/value_classes/ValueRaw.cpp (revision 633)
+++ cpp/src/value_classes/ValueRaw.cpp (working copy)
@@ -183,11 +183,15 @@
m_value[index] = (uint8)val;
}
index++;
+ if( ep != NULL && *ep == '\0' )
+ {
+ break;
+ }
str = ep + 1;
}
if( index > m_valueLength )
{
- Log::Write( LogLevel_Info, "Data length mismatch for raw data. Got %d bu
expected %d.", index, m_valueLength );
+ Log::Write( LogLevel_Info, "Data length mismatch for raw data. Got %d but
expected %d.", index, m_valueLength );
}
}
else
Original comment by glsatz
on 25 Jan 2013 at 4:45
I restarted multiple times and the fix works :-)
It is save to submit it into the SVN, only i think the routine "bool
ValueRaw::SetFromString" needs to be changed too. It has the same (bad?)
parsing code.
Original comment by uAle...@gmail.com
on 25 Jan 2013 at 7:13
Fixed in r638.
Original comment by glsatz
on 10 Feb 2013 at 6:52
Original issue reported on code.google.com by
uAle...@gmail.com
on 24 Jan 2013 at 5:09