From af26b140348ba9989c63f36bb553862a0f75ffeb Mon Sep 17 00:00:00 2001 From: Jim Keniston Date: Thu, 29 May 2008 17:13:38 -0700 Subject: Fix PR 6582: verify CONTEXT->regs in [u_]register() --- tapset/context.stp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tapset/context.stp') diff --git a/tapset/context.stp b/tapset/context.stp index dc560316..45e3be30 100644 --- a/tapset/context.stp +++ b/tapset/context.stp @@ -136,6 +136,10 @@ function probemod:string () %{ /* pure */ } %} +function registers_valid:long () %{ /* pure */ + THIS->__retvalue = (CONTEXT->regs != NULL); +%} + function is_return:long () %{ /* pure */ if (CONTEXT->pi) THIS->__retvalue = 1; -- cgit