]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: fix off-by-one reading relocation info.
authorRandy Dunlap <randy.dunlap@oracle.com>
Fri, 10 Jun 2011 20:33:24 +0000 (13:33 -0700)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:39:50 +0000 (22:39 +0100)
commit80d58535c94005b68410dbfd2220e447eb3a8b63
treea7b3055c6a06f722bf739e0ca687a4aee59757c2
parent898f1b526ade23b09b66f4e4d8c86654d8cf0f7b
dtrace: fix off-by-one reading relocation info.

Reading the dtrace relocation info table could fail on a
boundary condition. Fix by counting the string terminator (null)
byte.  Now works for my 4 test cases.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
kernel/dtrace/sdt_register.c