summary refs log tree commit diff stats
path: root/results/classifier/zero-shot-user-mode/instruction/1894029
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-07-08 13:28:15 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-07-08 13:28:28 +0200
commit5aa276efcbd67f4300ca1a7f809c6e00aadb03da (patch)
tree9b8f0e074014cda8d42f5a97a95bc25082d8b764 /results/classifier/zero-shot-user-mode/instruction/1894029
parent1a3c4faf4e0a25ed0b86e8739d5319a634cb9112 (diff)
downloadqemu-analysis-5aa276efcbd67f4300ca1a7f809c6e00aadb03da.tar.gz
qemu-analysis-5aa276efcbd67f4300ca1a7f809c6e00aadb03da.zip
restructure results
Diffstat (limited to 'results/classifier/zero-shot-user-mode/instruction/1894029')
-rw-r--r--results/classifier/zero-shot-user-mode/instruction/189402945
1 files changed, 45 insertions, 0 deletions
diff --git a/results/classifier/zero-shot-user-mode/instruction/1894029 b/results/classifier/zero-shot-user-mode/instruction/1894029
new file mode 100644
index 000000000..c96bd6fe3
--- /dev/null
+++ b/results/classifier/zero-shot-user-mode/instruction/1894029
@@ -0,0 +1,45 @@
+instruction: 0.633
+runtime: 0.263
+syscall: 0.105
+
+
+
+qemu-i386 malloc error
+
+Hi!I use qemu-i386-static on 64 bit machines.And memory request succeeded, but the pointer is wrong.
+This is my test program:
+
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+int main(int argc, char **argv)
+{
+        void *pa=0,*pb=0,*pc=0,*pd=0;
+        pa = malloc(sizeof(uint32_t));
+        pb = malloc(sizeof(uint32_t));
+        pc = malloc(4);
+        pd = malloc(4);
+        printf("pa: 0x%x\n",pa);
+        printf("pb: 0x%x\n",pb);
+        printf("pc: 0x%x\n",pc);
+        printf("pd: 0x%x\n",pd);
+        printf("uint32_t:%d\n",sizeof(uint32_t));
+        free(pa);
+        free(pb);
+        free(pc);
+        free(pd);
+        return 0;
+}
+
+And it is wrong:
+
+pa: 0x400051a0
+pb: 0x400051b0
+pc: 0x400051c0
+pd: 0x400051d0
+uint32_t:4
+
+Why did I apply for 4 bytes of space, but the pointer only increased by 2 bytes??
+Is it a BUG??
\ No newline at end of file