Hi Thomas,
[EMAIL PROTECTED] wrote:
> Hi,
>
> I found a bug in OSGWebInterface (at least with VC8).
> [BTW Is it intended, that it's *not* inside the OSG namespace?]
>
I'd say this is a bug.
> The bug:
>
> When I open the WebInterface in a browser, I get a crash at line 296 in
> OSGWebInterface.cpp:
>
> void WebInterface::decodeUrl(const std::string &url,
> std::string &path,
> ParameterT ¶m)
> {
> std::string::const_iterator sI=url.begin();
> [...]
> if(*sI == '?') // "*sI" crashes
> {
> [...]
>
> The debug message from the ms-string implementation is:
> "Expression: string iterator not dereferencable"
> I could replace it with something else and fix it but don't realy understand
> the root if the problem!? What's wrong with *sI in that place?
*iter is not allowed for any iterator if iter == c.end() where c is the
container iter points into. Without looking into the code I believe
there should be a
if(sI == url.end())
{
FWARNING(("WebInterface::decodeUrl: URL string is empty.\n"));
// do something appropriate ;)
return;
}
block.
Hope it helps,
Carsten
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core