* [SEMANAGE] Fix calloc check in semanage_store:115
@ 2006-01-11 23:34 Ivan Gyurdiev
2006-01-13 13:52 ` Stephen Smalley
0 siblings, 1 reply; 2+ messages in thread
From: Ivan Gyurdiev @ 2006-01-11 23:34 UTC (permalink / raw)
To: selinux; +Cc: Stephen Smalley, Joshua Brindle
[-- Attachment #1: Type: text/plain, Size: 54 bytes --]
This fixes an omem check bug noticed by Steve Grubb.
[-- Attachment #2: libsemanage.calloc_store.diff --]
[-- Type: text/x-patch, Size: 690 bytes --]
diff -Naurp --exclude ports_local.c --exclude-from excludes old/libsemanage/src/semanage_store.c new/libsemanage/src/semanage_store.c
--- old/libsemanage/src/semanage_store.c 2006-01-06 08:41:43.000000000 -0700
+++ new/libsemanage/src/semanage_store.c 2006-01-11 16:27:15.000000000 -0700
@@ -114,7 +114,7 @@ static int semanage_init_paths(const cha
for (i = 0; i < SEMANAGE_NUM_FILES; i++) {
len = (strlen(semanage_relative_files[i]) + prefix_len);
semanage_files[i] = calloc(len + 1, sizeof(char));
- if (!semanage_files[SEMANAGE_ROOT])
+ if (!semanage_files[i])
return -1;
sprintf(semanage_files[i], "%s%s%s", root, SEMANAGE_MOD_DIR,
semanage_relative_files[i]);
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [SEMANAGE] Fix calloc check in semanage_store:115
2006-01-11 23:34 [SEMANAGE] Fix calloc check in semanage_store:115 Ivan Gyurdiev
@ 2006-01-13 13:52 ` Stephen Smalley
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Smalley @ 2006-01-13 13:52 UTC (permalink / raw)
To: Ivan Gyurdiev; +Cc: selinux, Joshua Brindle
On Wed, 2006-01-11 at 16:34 -0700, Ivan Gyurdiev wrote:
> This fixes an omem check bug noticed by Steve Grubb.
Merged as of libsemanage 1.5.12.
--
Stephen Smalley
National Security Agency
--
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] 2+ messages in thread
end of thread, other threads:[~2006-01-13 13:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-11 23:34 [SEMANAGE] Fix calloc check in semanage_store:115 Ivan Gyurdiev
2006-01-13 13:52 ` Stephen Smalley
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.