[oe-commits] org.oe.dev qemu: Fix writev syscall null value handling, fixes glibc LC_CTYPE errors during locale generation

rpurdie commit openembedded-commits at lists.openembedded.org
Sun Feb 3 01:05:30 UTC 2008


qemu: Fix writev syscall null value handling, fixes glibc LC_CTYPE errors during locale generation

Author: rpurdie at openembedded.org
Branch: org.openembedded.dev
Revision: f83b56f2c6061d5f1487eab87b4530480d6bb88e
ViewMTN: http://monotone.openembedded.org/revision/info/f83b56f2c6061d5f1487eab87b4530480d6bb88e
Files:
1
packages/qemu/qemu-0.9.1/writev_fix.patch
packages/qemu/qemu_0.9.1.bb
Diffs:

#
# mt diff -rb1c42716de609f22442ae8ff2d3b60fd11307596 -rf83b56f2c6061d5f1487eab87b4530480d6bb88e
#
# 
# 
# add_file "packages/qemu/qemu-0.9.1/writev_fix.patch"
#  content [3f2bd27101b7c9040d2fb4744e2ebe2231460cff]
# 
# patch "packages/qemu/qemu_0.9.1.bb"
#  from [f8d662dfd4e4b410c48acb09eac959d69412e332]
#    to [bf513f5e837d2341359ac2ed28d1e0c8b9d8ef93]
# 
============================================================
--- packages/qemu/qemu-0.9.1/writev_fix.patch	3f2bd27101b7c9040d2fb4744e2ebe2231460cff
+++ packages/qemu/qemu-0.9.1/writev_fix.patch	3f2bd27101b7c9040d2fb4744e2ebe2231460cff
@@ -0,0 +1,17 @@
+---
+ linux-user/syscall.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: qemu-0.9.1/linux-user/syscall.c
+===================================================================
+--- qemu-0.9.1.orig/linux-user/syscall.c	2008-02-03 00:00:00.000000000 +0000
++++ qemu-0.9.1/linux-user/syscall.c	2008-02-03 00:00:38.000000000 +0000
+@@ -1048,7 +1048,7 @@ static abi_long lock_iovec(int type, str
+         base = tswapl(target_vec[i].iov_base);
+         vec[i].iov_len = tswapl(target_vec[i].iov_len);
+         vec[i].iov_base = lock_user(type, base, vec[i].iov_len, copy);
+-	if (!vec[i].iov_base) 
++	if (!vec[i].iov_base && vec[i].iov_len) 
+             goto fail;
+     }
+     unlock_user (target_vec, target_addr, 0);
============================================================
--- packages/qemu/qemu_0.9.1.bb	f8d662dfd4e4b410c48acb09eac959d69412e332
+++ packages/qemu/qemu_0.9.1.bb	bf513f5e837d2341359ac2ed28d1e0c8b9d8ef93
@@ -1,6 +1,6 @@ DEPENDS = "zlib"
 LICENSE = "GPL"
 DEPENDS = "zlib"
-PR = "r6"
+PR = "r7"
 
 FILESPATH = "${FILE_DIRNAME}/qemu-${PV}"
 FILESDIR = "${WORKDIR}"
@@ -31,6 +31,7 @@ SRC_URI = "\
     file://qemu-amd64-32b-mapping-0.9.0.patch;patch=1 \
     file://workaround_bad_futex_headers.patch;patch=1 \
     file://fix_segfault.patch;patch=1 \
+    file://writev_fix.patch;patch=1 \
     file://configure_symlinkpath_fix.patch;patch=1 \
     file://disable-error-in-configure.patch;patch=1 \
     file://no-strip.patch;patch=1"






More information about the Openembedded-commits mailing list