ALT Linux Bugzilla
– Attachment 5411 Details for
Bug 27115
openmotif-2.2 compat
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
malloc/free
openmotif-2.2.4-MrmIheader-buffer.patch (text/plain), 551 bytes, created by
vx8400
on 2012-03-25 01:32:51 MSK
(
hide
)
Description:
malloc/free
Filename:
MIME Type:
Creator:
vx8400
Created:
2012-03-25 01:32:51 MSK
Size:
551 bytes
patch
obsolete
>--- /afs/cern.ch/user/o/olezenin/tmp/MrmIheader.c.orig 2012-03-24 22:18:19.000000001 +0100 >+++ MrmIheader.c 2012-03-24 22:24:47.428975247 +0100 >@@ -229,9 +229,10 @@ > > { > /* sscanf() may call ungetc(), which would write the XmConst string. */ >- char buf[XtNumber(idb__database_version) + 1]; >+ char *buf = malloc(sizeof(idb__database_version[0])*(strlen(idb__database_version) + 1)); > strcpy(buf, idb__database_version); > sscanf(buf, "URM %d.%d", &db_major, &db_minor); >+ free(buf); > } > > if ((file_major > db_major) ||
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 27115
:
5409
|
5410
|
5411