Re: Check an GObject

2013-06-16 Thread iri
I see Thanks On 16/06/2013 17:37, Emmanuele Bassi wrote: hi; On 16 June 2013 16:24, iri wrote: I already check myself the received object, by internal methods. But (of course) i'm not sure that there are not any vulnerabilities. Know if this object is -or not- a valid GObject instance was th

Re: Check an GObject

2013-06-16 Thread Emmanuele Bassi
hi; On 16 June 2013 16:24, iri wrote: > I already check myself the received object, by internal methods. But (of > course) i'm not sure that there are not any vulnerabilities. > Know if this object is -or not- a valid GObject instance was the result of > G_IS_OBJECT. Am I wrong ? G_IS_OBJECT, a

Re: Check an GObject

2013-06-16 Thread iri
I'm ok with you say about C. And ok for my bad example ... I already check myself the received object, by internal methods. But (of course) i'm not sure that there are not any vulnerabilities. Know if this object is -or not- a valid GObject instance was the result of G_IS_OBJECT. Am I wrong ?

Re: Check an GObject

2013-06-16 Thread Emmanuele Bassi
hi; On 16 June 2013 15:09, iri wrote: > I develop an application which using GObject and specific derived objects > (in GTK 2.4 or 3.x). > > A module receives a pointer. It should be a GObject or derived but i'm not > sure (I'm not the sender). > So, to avoid bug / corruption / crash, i would ch

Check an GObject

2013-06-16 Thread iri
Hi, I develop an application which using GObject and specific derived objects (in GTK 2.4 or 3.x). A module receives a pointer. It should be a GObject or derived but i'm not sure (I'm not the sender). So, to avoid bug / corruption / crash, i would check the quality of this pointer : GObject