Bulletproof BitBltSimulation against failure in #lockSurfaces

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Bulletproof BitBltSimulation against failure in #lockSurfaces

Josh Gargus
 
Hi David,

Can you please add the following patch to the VMMaker source code?  It's a one-line fix to VMMaker-dtl.156 from SourceForge.  It fixes a bug where #warpBits doesn't check the return value of #lockSurfaces, and can potentially crash when execution continues after the failed lock attempt.

Thanks,
Josh



BitBlt-Bulletproofing.1.cs.gz (786 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Bulletproof BitBltSimulation against failure in #lockSurfaces

David T. Lewis
 
On Thu, Jan 28, 2010 at 12:21:14AM -0800, Josh Gargus wrote:
> Hi David,
>
> Can you please add the following patch to the VMMaker source code?  It's
> a one-line fix to VMMaker-dtl.156 from SourceForge.  It fixes a bug
> where #warpBits doesn't check the return value of #lockSurfaces, and
> can potentially crash when execution continues after the failed lock attempt.

Thanks Josh, will do. It might be a couple of days until I can get to it though.

Dave

Reply | Threaded
Open this post in threaded view
|

Re: Bulletproof BitBltSimulation against failure in #lockSurfaces

Josh Gargus


On Jan 28, 2010, at 5:17 AM, David T. Lewis wrote:

> On Thu, Jan 28, 2010 at 12:21:14AM -0800, Josh Gargus wrote:
>> Hi David,
>>
>> Can you please add the following patch to the VMMaker source code?  It's
>> a one-line fix to VMMaker-dtl.156 from SourceForge.  It fixes a bug
>> where #warpBits doesn't check the return value of #lockSurfaces, and
>> can potentially crash when execution continues after the failed lock attempt.
>
> Thanks Josh, will do. It might be a couple of days until I can get to it though.

No problem.  Thanks!

Josh




>
> Dave
>

Reply | Threaded
Open this post in threaded view
|

Re: Bulletproof BitBltSimulation against failure in #lockSurfaces

David T. Lewis
In reply to this post by Josh Gargus
 
On Thu, Jan 28, 2010 at 12:21:14AM -0800, Josh Gargus wrote:
>
> Can you please add the following patch to the VMMaker source code?
> It's a one-line fix to VMMaker-dtl.156 from SourceForge.  It fixes
> a bug where #warpBits doesn't check the return value of #lockSurfaces,
> and can potentially crash when execution continues after the failed
> lock attempt.

Josh,

Your patch is added as VMMaker-dtl.157 on SqueakSource, with Mantis
issue #7461 added for bookkeeping.

Thanks,
Dave