Skip to content

Instantly share code, notes, and snippets.

@djmitche
Forked from nikolasco/gist:123454
Created June 4, 2009 05:51
Show Gist options
  • Save djmitche/123455 to your computer and use it in GitHub Desktop.
Save djmitche/123455 to your computer and use it in GitHub Desktop.
ok 7 - empty read from zero-length buffer
Breakpoint 2, zcloud_memory_upload_producer (buffer=0x804e070,
buffer_length=43) at memory_upload_producer.c:121
121 return ret;
(gdb) p *ret
$2 = {parent = {parent = {g_type_instance = {g_class = 0x8056458},
ref_count = 1, qdata = 0x0}},
buffer = 0x804e070 "The quick brown fox jumps over the lazy dog",
buffer_length = 43, buffer_position = 0}
(gdb) cont
Continuing.
...
TESTING memory_download_consumer
Breakpoint 1, zcloud_memory_download_consumer (max_buffer_length=44)
at memory_download_consumer.c:121
121 return ret;
(gdb) p *ret
$3 = {parent = {parent = {g_type_instance = {g_class = 0x8056458},
ref_count = 1, qdata = 0x0}}, buffer = 0x0, buffer_length = 0,
max_buffer_length = 44, buffer_position = 0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment