Closed
Description
Previously discussed at DevSolar/pdclib#20 (comment).
These 2 problems exist in jsoncpp:
EOF
is used in a way that might break certain C implementations (in our case, pdclib for C + libcxx for C++, with clang as compiler). The code assumes thatEOF
will provide paranetheses fordynamic_cast
:
jsoncpp/src/lib_json/json_reader.cpp
Line 108 in 94cda30
EOF
isn't achar
, but it's used as if it is.EOF
is also not very strictly defined, so the behavior will be C implementation defined. Typically you get either achar
(cast toint
) or anEOF
(int
) as return value from functions likegetchar()
.
Point 1 is easily fixed, but 2 shows that it might not be necessary to fix it - the problematic code needs to be rewritten.
Metadata
Metadata
Assignees
Labels
No labels