[Bug 834813] Re: nih_str_split() can return garbage array elements.
Dmitrijs Ledkovs
launchpad at surgut.co.uk
Thu Mar 14 17:26:10 UTC 2013
This bug was fixed in the package libnih - 1.0.3-4ubuntu16
---------------
libnih (1.0.3-4ubuntu16) raring; urgency=low
* debian/{libnih1.postinst,libnih-dbus1.postinst}: Force an upgrade to
restart Upstart (to pick up new package version) if the running
instance supports it.
* Merge of important fixes from lp:~upstart-devel/libnih/nih
(LP: #776532, LP: #777097, LP: #834813, LP: #1123588).
-- James Hunt <james.hunt at ubuntu.com> Thu, 14 Mar 2013 09:14:22 +0000
** Also affects: libnih (Ubuntu)
Importance: Undecided
Status: New
** Changed in: libnih (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libnih in Ubuntu.
https://bugs.launchpad.net/bugs/834813
Title:
nih_str_split() can return garbage array elements.
Status in NIH Utility Library:
Fix Committed
Status in “libnih” package in Ubuntu:
Fix Released
Bug description:
If nih_str_split() is called with the args below it will return an
extra array element containing random data:
char **argv = nih_str_split (NULL, "hello\n\n\n", " \t\r\n",
TRUE);
What we get is:
args[0] == "hello"
args[1] == << random data >>
args[2] == NULL
What we expect is:
args[0] == "hello"
args[1] == NULL
To manage notifications about this bug go to:
https://bugs.launchpad.net/libnih/+bug/834813/+subscriptions
More information about the foundations-bugs
mailing list