azraelly / ticpp

Automatically exported from code.google.com/p/ticpp
0 stars 0 forks source link

Execption thrown when reading in "�" #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. use xml
<?xml version="1.0" ?>
<element_name value_name="&#x00;" />

2. read in the xml
BYTE value_name = p_element_options->GetAttribute<BYTE>("value_name");

What is the expected output? What do you see instead?
expecting value_name == 0
receive exception thrown

What version of the product are you using? On what operating system?

Please provide any additional information below.
ticpp.h
line 190
std::istringstream val( temp );
val >> *out;
This fails when *temp is 0.
However, temp is 0 by design as this is the correct value when parsed.

Original issue reported on code.google.com by d...@mcro.org on 21 Dec 2011 at 11:37