Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Execption thrown when reading in "�" #67

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments
Open

Execption thrown when reading in "�" #67

GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 21 Dec 2011 at 11:37

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant