[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [BUG][PATCH] check socklen_t values in linux-user
From: |
Thayne Harbaugh |
Subject: |
[Qemu-devel] [BUG][PATCH] check socklen_t values in linux-user |
Date: |
Mon, 17 Dec 2007 22:01:31 -0700 |
Qemu doesn't check socklen_t values before using them. If a value is
provided that is large (say -1) then qemu will merrily use it in
alloca() (which will blow the stack). The kernel checks all socklen_t
values for < 0 or > MAX_SOCK_ADDR.
This patch mimics the kernel behavior - which prevents SEGVs.
44_socklen_t_check.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [BUG][PATCH] check socklen_t values in linux-user,
Thayne Harbaugh <=