win32 build and freeing pointers

Dan Kegel dank at kegel.com
Fri Jul 31 14:43:45 UTC 2020


Sounds like the pointer is *pointing to* memory containing 0xdddddddd...
i.e. this is a use-after-free error.

You might consider building your app with Address Sanitizer enabled,
that might find the problem earlier during execution.
- Dan

On Fri, Jul 31, 2020 at 5:32 AM <Tobias.Wolf at t-systems.com> wrote:

> Hi guys,
>
>
>
> I’ve experienced the following strange behaviour.
>
> I have the same code and the same openssl build.
>
> With x64 everything I fine, but with x86 build not.
>
> With a 32bit environment I got the following access vialotion.
>
> I read that windows marks a freed pointer as “0XDDDDDDDD”, but we are
> usally freeing and setting NULL value to a pointer, therefore a following
> NULL check later for a already freed pointer would NOT work, right?
>
> Has anybody an adivice for me?
>
>
>
> Regards
>
> Tobias
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20200731/2add10c6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 69203 bytes
Desc: not available
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20200731/2add10c6/attachment-0001.jpg>


More information about the openssl-users mailing list