[Lldb-commits] [lldb] r179643 - Fix a pointer arithmetic thinko in ObjectFileMachO::GetLLDBSharedCacheUUID().

Jason Molenda jmolenda at apple.com
Tue Apr 16 15:56:17 PDT 2013


Author: jmolenda
Date: Tue Apr 16 17:56:17 2013
New Revision: 179643

URL: http://llvm.org/viewvc/llvm-project?rev=179643&view=rev
Log:
Fix a pointer arithmetic thinko in ObjectFileMachO::GetLLDBSharedCacheUUID().

Modified:
    lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

Modified: lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp?rev=179643&r1=179642&r2=179643&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp (original)
+++ lldb/trunk/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp Tue Apr 16 17:56:17 2013
@@ -4045,7 +4045,7 @@ ObjectFileMachO::GetLLDBSharedCacheUUID
             uint32_t *version = (uint32_t*) dyld_all_image_infos_address;              // version <mach-o/dyld_images.h>
             if (*version >= 13)
             {
-                uuid_t *sharedCacheUUID_address = (uuid_t*) dyld_all_image_infos_address + 84; // sharedCacheUUID <mach-o/dyld_images.h>
+                uuid_t *sharedCacheUUID_address = (uuid_t*) ((uint8_t*) dyld_all_image_infos_address + 84);  // sharedCacheUUID <mach-o/dyld_images.h>
                 uuid.SetBytes (sharedCacheUUID_address);
             }
         }





More information about the lldb-commits mailing list