You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1395 lines
62 KiB
1395 lines
62 KiB
// RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.RetainCount,alpha.core -fblocks -analyzer-output=plist -analyzer-config path-diagnostics-alternate=false -o %t %s
|
|
// RUN: FileCheck --input-file %t %s
|
|
|
|
void test_null_init(void) {
|
|
int *p = 0;
|
|
*p = 0xDEADBEEF;
|
|
}
|
|
|
|
void test_null_assign(void) {
|
|
int *p;
|
|
p = 0;
|
|
*p = 0xDEADBEEF;
|
|
}
|
|
|
|
void test_null_assign_transitive(void) {
|
|
int *p;
|
|
p = 0;
|
|
int *q = p;
|
|
*q = 0xDEADBEEF;
|
|
}
|
|
|
|
void test_null_cond(int *p) {
|
|
if (!p) {
|
|
*p = 0xDEADBEEF;
|
|
}
|
|
}
|
|
|
|
void test_null_cond_transitive(int *q) {
|
|
if (!q) {
|
|
int *p = q;
|
|
*p = 0xDEADBEEF;
|
|
}
|
|
}
|
|
|
|
void test_null_field(void) {
|
|
struct s { int *p; } x;
|
|
x.p = 0;
|
|
*(x.p) = 0xDEADBEEF;
|
|
}
|
|
|
|
// <rdar://problem/8331641> leak reports should not show paths that end with exit() (but ones that don't end with exit())
|
|
void panic() __attribute__((noreturn));
|
|
enum { kCFNumberSInt8Type = 1, kCFNumberSInt16Type = 2, kCFNumberSInt32Type = 3, kCFNumberSInt64Type = 4, kCFNumberFloat32Type = 5, kCFNumberFloat64Type = 6, kCFNumberCharType = 7, kCFNumberShortType = 8, kCFNumberIntType = 9, kCFNumberLongType = 10, kCFNumberLongLongType = 11, kCFNumberFloatType = 12, kCFNumberDoubleType = 13, kCFNumberCFIndexType = 14, kCFNumberNSIntegerType = 15, kCFNumberCGFloatType = 16, kCFNumberMaxType = 16 };
|
|
typedef const struct __CFAllocator * CFAllocatorRef;
|
|
extern const CFAllocatorRef kCFAllocatorDefault;
|
|
typedef signed long CFIndex;
|
|
typedef CFIndex CFNumberType;
|
|
typedef const struct __CFNumber * CFNumberRef;
|
|
|
|
extern CFNumberRef CFNumberCreate(CFAllocatorRef allocator, CFNumberType theType, const void *valuePtr);
|
|
|
|
void rdar8331641(int x) {
|
|
signed z = 1;
|
|
CFNumberRef value = CFNumberCreate(kCFAllocatorDefault, kCFNumberSInt32Type, &z); // expected-warning{{leak}}
|
|
if (x)
|
|
panic();
|
|
(void) value;
|
|
}
|
|
|
|
// CHECK: <key>diagnostics</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>path</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>'p' initialized to a null pointer value</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>'p' initialized to a null pointer value</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from variable 'p')</string>
|
|
// CHECK-NEXT: <key>category</key><string>Logic error</string>
|
|
// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string>
|
|
// CHECK-NEXT: <key>check_name</key><string>core.NullDereference</string>
|
|
// CHECK-NEXT: <!-- This hash is experimental and going to change! -->
|
|
// CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>dc9c2a657ca759f9744cde2e093cfd59</string>
|
|
// CHECK-NEXT: <key>issue_context_kind</key><string>function</string>
|
|
// CHECK-NEXT: <key>issue_context</key><string>test_null_init</string>
|
|
// CHECK-NEXT: <key>issue_hash_function_offset</key><string>2</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>path</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>10</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>10</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>11</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>11</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>11</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>11</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>11</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Null pointer value stored to 'p'</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Null pointer value stored to 'p'</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>11</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>11</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>12</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>12</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>12</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>12</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>12</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from variable 'p')</string>
|
|
// CHECK-NEXT: <key>category</key><string>Logic error</string>
|
|
// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string>
|
|
// CHECK-NEXT: <key>check_name</key><string>core.NullDereference</string>
|
|
// CHECK-NEXT: <!-- This hash is experimental and going to change! -->
|
|
// CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>8f95d9681490a4e52c167969d0957b39</string>
|
|
// CHECK-NEXT: <key>issue_context_kind</key><string>function</string>
|
|
// CHECK-NEXT: <key>issue_context</key><string>test_null_assign</string>
|
|
// CHECK-NEXT: <key>issue_hash_function_offset</key><string>3</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>12</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>path</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>16</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>16</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>17</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>17</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>17</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>17</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>17</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Null pointer value stored to 'p'</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Null pointer value stored to 'p'</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>17</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>17</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>'q' initialized to a null pointer value</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>'q' initialized to a null pointer value</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>18</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'q')</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'q')</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from variable 'q')</string>
|
|
// CHECK-NEXT: <key>category</key><string>Logic error</string>
|
|
// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string>
|
|
// CHECK-NEXT: <key>check_name</key><string>core.NullDereference</string>
|
|
// CHECK-NEXT: <!-- This hash is experimental and going to change! -->
|
|
// CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>94c43fbcad6aaff4ee7433f2d2db0bbe</string>
|
|
// CHECK-NEXT: <key>issue_context_kind</key><string>function</string>
|
|
// CHECK-NEXT: <key>issue_context</key><string>test_null_assign_transitive</string>
|
|
// CHECK-NEXT: <key>issue_hash_function_offset</key><string>4</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>19</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>path</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Assuming 'p' is null</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Assuming 'p' is null</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from variable 'p')</string>
|
|
// CHECK-NEXT: <key>category</key><string>Logic error</string>
|
|
// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string>
|
|
// CHECK-NEXT: <key>check_name</key><string>core.NullDereference</string>
|
|
// CHECK-NEXT: <!-- This hash is experimental and going to change! -->
|
|
// CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>659f01507ffd7efd3ca3eab7179fd7d2</string>
|
|
// CHECK-NEXT: <key>issue_context_kind</key><string>function</string>
|
|
// CHECK-NEXT: <key>issue_context</key><string>test_null_cond</string>
|
|
// CHECK-NEXT: <key>issue_hash_function_offset</key><string>2</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>path</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Assuming 'q' is null</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Assuming 'q' is null</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>29</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>30</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>30</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>30</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>30</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>30</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>'p' initialized to a null pointer value</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>'p' initialized to a null pointer value</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>30</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>5</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>30</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>31</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>31</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>31</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>31</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>31</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>6</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from variable 'p')</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from variable 'p')</string>
|
|
// CHECK-NEXT: <key>category</key><string>Logic error</string>
|
|
// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string>
|
|
// CHECK-NEXT: <key>check_name</key><string>core.NullDereference</string>
|
|
// CHECK-NEXT: <!-- This hash is experimental and going to change! -->
|
|
// CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>c90d51e62139e614b57aff7021240a82</string>
|
|
// CHECK-NEXT: <key>issue_context_kind</key><string>function</string>
|
|
// CHECK-NEXT: <key>issue_context</key><string>test_null_cond_transitive</string>
|
|
// CHECK-NEXT: <key>issue_hash_function_offset</key><string>3</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>31</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>path</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>36</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>36</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>36</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>36</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>36</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>36</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>24</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>37</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>37</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>37</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>37</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>37</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>9</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Null pointer value stored to 'x.p'</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Null pointer value stored to 'x.p'</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>37</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>37</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>38</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>38</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>38</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>38</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>38</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from field 'p')</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Dereference of null pointer (loaded from field 'p')</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>description</key><string>Dereference of null pointer (loaded from field 'p')</string>
|
|
// CHECK-NEXT: <key>category</key><string>Logic error</string>
|
|
// CHECK-NEXT: <key>type</key><string>Dereference of null pointer</string>
|
|
// CHECK-NEXT: <key>check_name</key><string>core.NullDereference</string>
|
|
// CHECK-NEXT: <!-- This hash is experimental and going to change! -->
|
|
// CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>245408d2bc416e324064d990e6dd82a8</string>
|
|
// CHECK-NEXT: <key>issue_context_kind</key><string>function</string>
|
|
// CHECK-NEXT: <key>issue_context</key><string>test_null_field</string>
|
|
// CHECK-NEXT: <key>issue_hash_function_offset</key><string>3</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>38</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>path</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>53</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>53</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>8</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>54</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>54</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>13</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>54</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>54</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>13</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>54</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>54</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>36</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>54</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>54</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>54</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>82</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Call to function 'CFNumberCreate' returns a Core Foundation object with a +1 retain count</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Call to function 'CFNumberCreate' returns a Core Foundation object with a +1 retain count</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>54</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>23</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>54</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>36</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>55</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>55</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>55</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>3</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>55</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>4</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>55</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>55</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>55</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>ranges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>55</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>55</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Assuming 'x' is 0</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Assuming 'x' is 0</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>55</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>55</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>7</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>57</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>57</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>14</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>control</string>
|
|
// CHECK-NEXT: <key>edges</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>start</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>57</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>10</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>57</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>14</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>end</key>
|
|
// CHECK-NEXT: <array>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>58</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>1</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>58</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>1</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>kind</key><string>event</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>58</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>1</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: <key>depth</key><integer>0</integer>
|
|
// CHECK-NEXT: <key>extended_message</key>
|
|
// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'value' is not referenced later in this execution path and has a retain count of +1</string>
|
|
// CHECK-NEXT: <key>message</key>
|
|
// CHECK-NEXT: <string>Object leaked: object allocated and stored into 'value' is not referenced later in this execution path and has a retain count of +1</string>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|
|
// CHECK-NEXT: <key>description</key><string>Potential leak of an object stored into 'value'</string>
|
|
// CHECK-NEXT: <key>category</key><string>Memory (Core Foundation/Objective-C)</string>
|
|
// CHECK-NEXT: <key>type</key><string>Leak</string>
|
|
// CHECK-NEXT: <key>check_name</key><string>osx.cocoa.RetainCount</string>
|
|
// CHECK-NEXT: <!-- This hash is experimental and going to change! -->
|
|
// CHECK-NEXT: <key>issue_hash_content_of_line_in_context</key><string>29a10ca4af622b6146ca082e49d919d6</string>
|
|
// CHECK-NEXT: <key>issue_context_kind</key><string>function</string>
|
|
// CHECK-NEXT: <key>issue_context</key><string>rdar8331641</string>
|
|
// CHECK-NEXT: <key>issue_hash_function_offset</key><string>2</string>
|
|
// CHECK-NEXT: <key>location</key>
|
|
// CHECK-NEXT: <dict>
|
|
// CHECK-NEXT: <key>line</key><integer>58</integer>
|
|
// CHECK-NEXT: <key>col</key><integer>1</integer>
|
|
// CHECK-NEXT: <key>file</key><integer>0</integer>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </dict>
|
|
// CHECK-NEXT: </array>
|