* [PATCH 18/84] libsemanage: FIME binary_policy_path error checking
@ 2013-01-22 14:39 Daniel J Walsh
0 siblings, 0 replies; only message in thread
From: Daniel J Walsh @ 2013-01-22 14:39 UTC (permalink / raw)
To: eparis; +Cc: selinux
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
man asprintf says
When successful, these functions return the number of bytes printed,
just like sprintf(3). If memory allocation wasn't possible, or some
other error occurs, these functions will return -1, and the contents of
strp is undefined.
So checking for != 0 is wrong, I guess we should be check > -1;
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlD+pIUACgkQrlYvE4MpobPuxgCdHZdPKVhN8aQFm4w+7KMpQKDl
EhIAmQGoiTZiaZ41zehFBisd5THvEmkN
=nqot
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-22 14:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-22 14:39 [PATCH 18/84] libsemanage: FIME binary_policy_path error checking Daniel J Walsh
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.