Re: ATL bug - atlrx.h



>There is a bug in atlrx.h near line 640, the passage below shows the bug.
>Applies for VS .NET 2002 and 2003.

Roman,

FWIW, this code has been changed for VS2005 B2, so maybe MS were aware
of it and have fixed it. Anyhow, the code is currently this:

case RE_RANGE:
{
if (*sz == '\0')
{
ip = (size_t) pContext->Pop();
break;
}
RECHAR *pBits = reinterpret_cast<RECHAR
*>((&m_Instructions[ip]+1));
size_t u = CharTraits::GetBitFieldForRangeArrayIndex(sz);
if (pBits[u >> 3] & 1 << (u & 0x7))
{
ip += InstructionsPerRangeBitField();
ip++;
sz = CharTraits::Next(sz);
}
else
{
ip = (size_t) pContext->Pop();
}
}
break;

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
.



Relevant Pages

  • Re: Google Page Rank mystery
    ... FWIW, my site does not have www. ... Mozilla Web Author FAQ: http://mozilla.org/docs/web-developer/faq.html ... Prev by Date: ...
    (comp.infosystems.www.authoring.html)
  • Re: Recursive dependency for SAA7134 in 2.6.15-rc7
    ... bye, Roman ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ...
    (Linux-Kernel)
  • Re: [PATCH 15/15] kconf: Check for eof from input stream.
    ... conf should finish normally anyway and just set ... bye, Roman ... Please read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ...
    (Linux-Kernel)
  • Re: 2.6.15-mm3
    ... On Wed, 11 Jan 2006, Andrew Morton wrote: ... bye, Roman ... Please read the FAQ at http://www.tux.org/lkml/ ... Prev by Date: ...
    (Linux-Kernel)
  • Re: how do I find prime factors of a number
    ... FWIW, there is a program available here ... for computing prime factors. ... Declan O'R ... Prev by Date: ...
    (microsoft.public.excel.worksheet.functions)