help-shishi
[Top][All Lists]
Advanced

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

Segfault prevention for setting default realms.


From: Mats Erik Andersson
Subject: Segfault prevention for setting default realms.
Date: Mon, 2 Jul 2012 21:11:02 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

It happens so that GNU Inetutils had code in the order

   shishi_realm_default_set(*handle, realm);

   shishi_init(handle);

Illegal order for sure, but it resulted in a segmentation
fault in libshishi. It should be an easy matter to perform
some sanity checks inside shishi_realm_default_set() in
order that the most obvious non-initiated handle be found,
thus returning an error status instead of crashing on a
segmentation fault.


Best regards,

  Mats Erik Andersson



reply via email to

[Prev in Thread] Current Thread [Next in Thread]