From 111a3a716978e797e8e0c098dfc22796d30fa8ce Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Tue, 1 Jul 2008 23:42:19 +0000 Subject: [PATCH] Added a null check on the vtable symbol --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402327 --- tools/Vtable scanner/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/Vtable scanner/main.cpp b/tools/Vtable scanner/main.cpp index 050bfe71..e1d48a13 100644 --- a/tools/Vtable scanner/main.cpp +++ b/tools/Vtable scanner/main.cpp @@ -38,6 +38,11 @@ int main(int argc, char **argv) pVtable = (void **)dlsym(handle, argv[2]); + if (pVtable == NULL) + { + printf("Invalid vtable symbol \"%s\"\n", argv[2]); + } + if (argc >= 5) { params = argv[4];