Re: [Iup-users] Repeat of IM's "process/im_analyze.cpp allow free(NULL); " patch...

2020-05-17 Thread Pete Lomax via Iup-users
On Sunday, 17 May 2020, 23:05:05 BST, Ranier Vilela wrote: The big question is how to catch the double free that may exist. Because this not to protect against double free. if (ptr) {   free(ptr); } One tactic I have just recently started adopting, entirely independent of this and in fact

Re: [Iup-users] unsuscribe

2020-05-17 Thread Antonio Scuri
Not the way to unsubscribe... See the link below. https://sourceforge.net/projects/iup/lists/iup-users/unsubscribe Best, Scuri Em dom., 17 de mai. de 2020 às 21:04, hald via Iup-users < iup-users@lists.sourceforge.net> escreveu: > unsuscribe > > > -- > Questa e-mail è stata controllata

[Iup-users] unsuscribe

2020-05-17 Thread hald via Iup-users
unsuscribe -- Questa e-mail è stata controllata per individuare virus con Avast antivirus. https://www.avast.com/antivirus ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users

[Iup-users] Thanks for recent IM and IUP changes...

2020-05-17 Thread sur-behoffski
G'day Antonio (and lua-l list), Thanks for making some changes. I'll look at them shortly, but will stay clear of IM, until the next release, unless I stumble over another GNU/Linux-related breakage. -- Just to throw a spanner in the works of the others looking at the "free(NULL)" fun:

Re: [Iup-users] Repeat of IM's "process/im_analyze.cpp allow free(NULL); " patch...

2020-05-17 Thread Ranier Vilela
De: Antonio Scuri Enviado: domingo, 17 de maio de 2020 17:23 Para: IUP discussion list. Assunto: Re: [Iup-users] Repeat of IM's "process/im_analyze.cpp allow free(NULL); " patch... > For me those "if"s are there also to remind me that those pointers where not > allocated. For me one call to

Re: [Iup-users] Repeat of IM's "process/im_analyze.cpp allow free(NULL); " patch...

2020-05-17 Thread Ranier Vilela
De: Antonio Scuri Enviado: domingo, 17 de maio de 2020 17:23 Para: IUP discussion list. Assunto: Re: [Iup-users] Repeat of IM's "process/im_analyze.cpp allow free(NULL); " patch... > For me those "if"s are there also to remind me that those pointers where not > allocated. For me one call to

Re: [Iup-users] 2020-05-17: GNU/Linux (Linux Mint 19.3) build status for im-r788, cd-r862, iup-r5904

2020-05-17 Thread Antonio Scuri
That was a bug in tecmake.mak. Fixed and committed to the SVN. Best, Scuri Em dom., 17 de mai. de 2020 às 00:45, sur-behoffski < sur_behoff...@grouse.com.au> escreveu: > G'day, > > Thanks for the changes in the last day or so after my previous > message regarding GNU/Linux LinuxMint builds.

Re: [Iup-users] Repeat of IM's "process/im_analyze.cpp allow free(NULL); " patch...

2020-05-17 Thread Antonio Scuri
For me those "if"s are there also to remind me that those pointers where not allocated. For me one call to malloc/calloc must match one call to free. Maybe I'm old, but I'll stick with that for now. What I can do is to improve the indentation and readability. Also cm20, cm02 and cm11 don't

Re: [Iup-users] Repeat of IM's "process/im_analyze.cpp allow free(NULL); " patch...

2020-05-17 Thread Jörg F . Wittenberger
On May 17 2020, sur-behoffski wrote: and are in strict conformance with C's definition of how free(3) is mandated to work when its parameter is NULL (codified in C89 standard, and included in all C and C++ standards since). IMHO it's still better to NOT call free(3) if there is no memory to

Re: [Iup-users] Repeat of IM's "process/im_analyze.cpp allow free(NULL); " patch...

2020-05-17 Thread Ranier Vilela
As already mentioned, most of the report refers to the third-party library, where they do not have access. Could you forward this report to the maintainers of these libraries? regards, Ranier Vilela ___ Iup-users mailing list