From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp2-g21.free.fr ([2a01:e0c:1:1599::11]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UQGFP-0007W5-LY for barebox@lists.infradead.org; Thu, 11 Apr 2013 12:05:02 +0000 Received: from e6520eb.local.eukrea.com (unknown [82.240.38.71]) by smtp2-g21.free.fr (Postfix) with ESMTP id 40D9B4B012B for ; Thu, 11 Apr 2013 14:04:52 +0200 (CEST) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Thu, 11 Apr 2013 14:04:51 +0200 Message-Id: <1365681891-9135-1-git-send-email-eric@eukrea.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] mtdraw: fix oob read and write To: barebox@lists.infradead.org YWN0dWFsbHkgb3BzLm9vYm9mZnMgaXMgbm90IGRlZmF1bHRlZCBzbyB3aGVuIGl0cyB2YWx1ZSBn ZXRzCmFkZGVkIHRvIGNoaXAtPm9vYl9wb2kgaW4gbmFuZF9maWxsX29vYiBvciBuYW5kX3RyYW5z ZmVyX29vYgp0aGUgcmVzcGVjdGl2ZSBtZW1jcHkgaXMgdXNpbmcgYSB3cm9uZyBhZGRyZXNzLgoK V2l0aCB0aGlzIHBhdGNoLCBib3RoIG1kIC1zIC9kZXYvbmFuZHJhdzAgYW5kIGNwIHh5eiAvZGV2 L25hbmRyYXcwLnNiCmFyZSB3b3JraW5nIGZpbmUgb24gYW4gaS5NWDI4IHRhcmdldCAoaW5zdGVh ZCBvZiBjcmFzaGluZyB0aGUgYm9hcmQpLgoKU2lnbmVkLW9mZi1ieTogRXJpYyBCw6luYXJkIDxl cmljQGV1a3JlYS5jb20+Ci0tLQogZHJpdmVycy9tdGQvbXRkcmF3LmMgfC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