Re: win32 build and freeing pointers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx> 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

 

 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux