Thread (3 messages) flat view 3 messages, 3 authors, 2004-09-09

Re: [PATCH 2.6 NET] Catch wrong RTATTR_MAX with BUG()

From: YOSHIFUJI Hideaki / 吉藤英明 <hidden>
Date: 2004-09-09 17:24:28

In article [ref] (at Thu, 9 Sep 2004 18:43:46 +0200), Thomas Graf [off-list ref] says:
 	kind = type&3;
 
+	if (RTATTR_MAX < rta_max[sz_idx])
+		BUG();
+
Something like:
	if (rta_max[sz_idx] > RTATTR_MAX)
		goto err_inval;

-- 
Hideaki YOSHIFUJI @ USAGI Project [off-list ref]
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help