Aaaa... of course, pointer is not correct to free after "pp += 4".
Though, result shouldn't be signal 11.

Jussi


2011/1/13 Benoît Minisini <gam...@users.sourceforge.net>

> > Hi!
> > I was adding some test for pointer arithmetic when noticing this.
> > GambasTester will pass, but when you close main form, signal 11 will
> rise.
> > Commenting out Free(pp) from mTest: line 1070, will prevent crash.
> >
> > Gambas 3 rev 3452 @ Ubuntu 10.10 64bit
> >
> > Jussi
>
> You are calling Free(pp) whereas pp is not the pointer returned by Alloc()
> anymore. So you get a crash...
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to