diff for duplicates of <20151019102005.GF26688@mwanda> diff --git a/a/1.txt b/N1/1.txt index fe2e47c..8cee97e 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -4,7 +4,7 @@ Smatch found a bug in the error handling: error: buffer overflow 'doc_sys_attrs' 4 <= 4 The problem is that if the very last device_create_file() fails, then we -are beyond the end of the array. Actually, any time i = 3 then there +are beyond the end of the array. Actually, any time i == 3 then there is a problem. We can fix this an simplify the code at the same time by moving the !ret conditions out of the for loops and using a goto instead. diff --git a/a/content_digest b/N1/content_digest index e4fcc47..6c93458 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Subject\0[patch] mtd/docg3: off by one in doc_register_sysfs()\0" - "Date\0Mon, 19 Oct 2015 10:20:05 +0000\0" + "Date\0Mon, 19 Oct 2015 13:20:05 +0300\0" "To\0Robert Jarzmik <robert.jarzmik@free.fr>\0" "Cc\0David Woodhouse <dwmw2@infradead.org>" Brian Norris <computersforpeace@gmail.com> @@ -14,7 +14,7 @@ "\terror: buffer overflow 'doc_sys_attrs' 4 <= 4\n" "\n" "The problem is that if the very last device_create_file() fails, then we\n" - "are beyond the end of the array. Actually, any time i = 3 then there\n" + "are beyond the end of the array. Actually, any time i == 3 then there\n" "is a problem. We can fix this an simplify the code at the same time by\n" "moving the !ret conditions out of the for loops and using a goto\n" "instead.\n" @@ -62,4 +62,4 @@ " \treturn ret;\n" } -4382526800a784a910f417dfb33796bfb3ada99a18e146ffaec2a51f38e049b5 +df87a6144b02d3dee6d931250acb489a7702b2a15a5270c42ce2915cda648bcd
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.