A more general follow-up Is there any tool that can instrument C-code to introduce null-pointer checks, say for a subset, like all pointer accesses within the relatively complex structure datatype used in the example below?
Surprisingly I received several personal replies - AFAICT no mailing list on CC? Public thanks here to those of you who chose to answer off-list. (And if it was not deliberate, feel free to post your email and my response) Best Regards - Gunnar -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Derek Foreman Sent: den 15 oktober 2015 19:22 To: Andersson, Gunnar; [email protected]; [email protected]; [email protected]; [email protected]; Leon Anavi Subject: Re: Asserts? (was: RE: Keyboard issues with Weston and AGL application suite) On 15/10/15 11:26 AM, Andersson, Gunnar wrote: > This is not really on topic... > > But seeing this issue just reminds me of a question that nags me. > > Why do people not use asserts in most projects? Is it considered > to be ugly noise, is it not "cool" to use them, ... or what? > > It's just that in a line like the original one (this is just an example) > > &context->input_method->seat->keyboard->input_method_grab; > > at least my brain *cannot* avoid asking if every pointer is valid... [trimmed] _______________________________________________ Dev mailing list [email protected] https://lists.tizen.org/listinfo/dev
