implicit pointer dereference

This commit is contained in:
Abyss Watcher
2024-03-04 20:11:50 +01:00
parent 403804431a
commit 1bf18dbd8a
+1 -2
View File
@@ -44,8 +44,7 @@ class Dmesg(interfaces.plugins.PluginInterface):
'The provided symbol table does not include the "msgbufp" symbol. This means you are either analyzing an unsupported kernel version or that your symbol table is corrupt.'
)
msgbufp_ptr = kernel.object_from_symbol(symbol_name="msgbufp")
msgbufp = msgbufp_ptr.dereference()
msgbufp = kernel.object_from_symbol(symbol_name="msgbufp")
msg_size = msgbufp.msg_size # max buffer size
msg_bufx = msgbufp.msg_bufx # write pointer
msg_bufc = msgbufp.msg_bufc