ATL bug - atlrx.h
- From: Roman Ryltsov <ryltsov@xxxxxxxxxxxxxxxx>
- Date: Thu, 26 May 2005 23:29:44 +0300
Hi,
There is a bug in atlrx.h near line 640, the passage below shows the bug. Applies for VS .NET 2002 and 2003.
===
case RE_RANGE:
{
if (*sz == '\0')
{
ip = (size_t) pContext->Pop();
break;
}unsigned char *pBits = (unsigned char *) (&m_Instructions[ip]+1);
--> // BUGFIX: Value is erroneously treated as signed --> //size_t u = (size_t) *sz; --> ATLASSERT(sizeof *sz == 1); --> size_t u = (size_t) (UCHAR) *sz;
if (pBits[u >> 3] & 1 << (u & 0x7)) ===
Roman .
- Follow-Ups:
- Re: ATL bug - atlrx.h
- From: David Lowndes
- Re: ATL bug - atlrx.h
- Prev by Date: settimer and realtime issue
- Next by Date: Re: ATL bug - atlrx.h
- Previous by thread: settimer and realtime issue
- Next by thread: Re: ATL bug - atlrx.h
- Index(es):