| To: | Rafal Wojtczuk <rafal@xxxxxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [Xen-devel] Two small patches related to xenfb |
| From: | Gerd Hoffmann <kraxel@xxxxxxxxxx> |
| Date: | 2008年9月29日 11:13:14 +0200 |
| Cc: | xen-devel@xxxxxxxxxxxxxxxxxxx |
| Delivery-date: | 2008年9月29日 02:13:40 -0700 |
| Envelope-to: | www-data@xxxxxxxxxxxxxxxxxxx |
| In-reply-to: | <20080926140548.GC31985@xxxxxxxxxxxxxxxxxxxxxx> |
| List-help: | <mailto:xen-devel-request@lists.xensource.com?subject=help> |
| List-id: | Xen developer discussion <xen-devel.lists.xensource.com> |
| List-post: | <mailto:xen-devel@lists.xensource.com> |
| List-subscribe: | <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
| List-unsubscribe: | <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
| References: | <20080926140548.GC31985@xxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
| User-agent: | Thunderbird 2.0.0.16 (X11/20080723) |
Rafal Wojtczuk wrote: > Hello, > Two minor issues: > row_stride_div0.patch: a malicious frontend can send row_stride==0 and force > qemu-dm to perform division by 0 Ok. > vnc_resize_doublecheck.patch: there is an unchecked multiplication when > calculating framebuffer size. Cs 17630 sanitizes framebuffer dimensions > passed by the frontend, so most probably no integer overflow can happen, but > there should be a check for overflow close to the actual computation (to > make code review easier and to cope with other codepaths in the future). If bogous values can make it through the sanity checks in xenfb_configure_fb() then those sanity checks must be fixed. Adding another check somewhere else certainly doesn't make review easier. In contrast it makes error handling more complicated because there are multiple places where you have to deal with errors instead of just one functions which does all sanity checks. cheers, Gerd _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [Xen-devel] Re: [PATCH 0/9] PCI SR-IOV support , Keir Fraser |
|---|---|
| Next by Date: | Re: [Xen-devel] [PATCH 0/9] PCI SR-IOV support , Jan Beulich |
| Previous by Thread: | Re: [Xen-devel] Two small patches related to xenfb , Ian Jackson |
| Next by Thread: | [Xen-devel] [PATCH]CPUIDLE: Initialize timer broadcast mechanism for C2 , Wei, Gang |
| Indexes: | [Date] [Thread] [Top] [All Lists] |