-
We've received the following report from a reporter.
----
source code file bochs-2.2.1/gui/sdl.cc
function bx_sdl_gui_c::create_bitmap
local variable is tmp.
I notice the following code
bitmaps *tmp = new bitmaps;
Uint32 *buf, *buf_row;
Uint32 disp;
unsigned char pixels;
if (n_sdl_bitmaps >= MAX_SDL_BITMAPS) {
BX_PANIC (("too many SDL bitmaps. To fix, increase...
2009-10-24 11:08:54 UTC in Bochs x86 PC emulator
-
We've received the following report from a reporter:
----
source code file glabels-2.2.5/barcode-0.98/code93.c
function Barcode_93_encode
I notice the following code
checksum_str = (int *)malloc( (strlen(text) + 3) * 2 * sizeof(int));
but I fail to notice any matching call to free. This looks like a memory
leak to me. Suggest add call to free near the end of the routine.
2009-10-24 11:05:00 UTC in gLabels
-
We've received the following report from a reporter:
---
For source code file htop-0.8.3/plpa-1.1/src/plpa_map.c
around line 310 is the source code for the
function load_cache.
I notice the following line of code
cores_on_sockets = malloc(sizeof(PLPA_NAME(cpu_set_t)) *
(max_socket_id + 1));
but no matching call to free. This looks like a memory...
2009-10-23 23:49:50 UTC in htop
-
We've received the following report from a reporter:
----
For source code file htop-0.8.3/OpenFilesScreen.c around line
90, function OpenFilesScreen_getProcessData, is the following code
char* entry = malloc(1024);
if (!fgets(entry, 1024, fd)) break;
If the break is taken, then there is a memory leak. Suggest new code
char* entry = malloc(1024);
if...
2009-10-23 23:48:57 UTC in htop
-
We've received the following report from a reporter:
----
1.
mpegtools/remux.c(468): warning #175: subscript out of range
The source code is
uint8_t b[3];
vring_peek( rem, b, 4, 0);
if ( b[0] == 0x00 && b[1] == 0x00 && b[2] == 0x01
&& b[3] == 0xb3) found = 4;
Clearly broken code. b[ 3] doesn't exist. Suggest...
2009-10-23 23:44:25 UTC in DVB tools
-
We've received the following report from a reporter:
---
I just had a look at factory package dvbstream-0.6-139.10
source code file dvbstream-cvs/mpegtools/ctools.c
function read_pes
I notice the following code
buf = (u8 *) malloc(p->length);
if((neof = read(f,buf,p->length))< p->length) return -1;
so if the return is taken, then buf is a memory leak.
2009-10-23 23:43:30 UTC in DVB tools
-
We've received the following report from a reporter:
----
I just had a look at factory package dvbstream-0.6-139.4
For source code file dvbstream-cvs/mpegtools/ctools.c,
around line 2100 is the source code for the
function split_mpg.
I notice the following code
if ( (fdin = open(name, O_RDONLY|O_LARGEFILE)) < 0){
and
if ( (fdout =...
2009-10-23 23:32:03 UTC in DVB tools
-
source code file icewm-1.2.38pre1/src/icehelp.cc
function parse
I notice the following code
buf = (char *)realloc(buf, ++len);
but I fail to notice a matching call to free in the following code
if (parent) {
close = type;
//puts("");
return f;
}
Suggest new...
2009-10-19 13:20:02 UTC in icewm
-
attached patch fixes the memory leak.
2009-10-19 13:06:13 UTC in DOSEMU for Linux
-
Integer constant without modifiers are of type int. When you want to use value that does not fit into this type you have to use modifier (L for long, LL for long long, UL or ULL for unsigned counterparts). Patch fixes the build problem with GCC 4.x.
2009-07-18 23:50:16 UTC in OpenDarkEngine