OLD | NEW |
1 // Copyright 2014 Google Inc. All Rights Reserved. | 1 // Copyright 2014 Google Inc. All Rights Reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 " \"free-thread-id\": 32,\n" | 369 " \"free-thread-id\": 32,\n" |
370 " \"free-stack\": [\n" | 370 " \"free-stack\": [\n" |
371 " \"0x00000003\", \"0x00000004\", \"0x00000005\"\n" | 371 " \"0x00000003\", \"0x00000004\", \"0x00000005\"\n" |
372 " ],\n" | 372 " ],\n" |
373 " \"milliseconds-since-free\": 100,\n" | 373 " \"milliseconds-since-free\": 100,\n" |
374 " \"contents\": {\n" | 374 " \"contents\": {\n" |
375 " \"type\": \"blob\",\n" | 375 " \"type\": \"blob\",\n" |
376 " \"address\": \"0x%08IX\",\n" | 376 " \"address\": \"0x%08IX\",\n" |
377 " \"size\": null,\n" | 377 " \"size\": null,\n" |
378 " \"data\": [\n" | 378 " \"data\": [\n" |
379 " \"0x80\", \"0xCA\", \"0x00\", \"0x00\", \"0x20\", \"0x00\"," | 379 " \"0x80\", \"0xCA\", \"0x00\", \"0x00\", \"0x10\", \"0x00\"," |
380 " \"0x00\", \"0x00\",\n" | 380 " \"0x00\", \"0x00\",\n" |
381 " \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\"," | 381 " \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\"," |
382 " \"0x00\", \"0x00\",\n" | 382 " \"0x00\", \"0x00\",\n" |
383 " \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\"," | 383 " \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\"," |
384 " \"0x00\", \"0x00\",\n" | 384 " \"0x00\", \"0x00\",\n" |
385 #ifdef _WIN64 | 385 #ifdef _WIN64 |
386 " \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\"," | 386 " \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\"," |
387 " \"0x00\", \"0x00\",\n" | 387 " \"0x00\", \"0x00\",\n" |
388 #endif | 388 #endif |
389 " \"0xC3\", \"0xC3\", \"0xC3\", \"0xC3\", \"0x00\", \"0x00\"," | 389 " \"0xC3\", \"0xC3\", \"0xC3\", \"0xC3\", \"0x00\", \"0x00\"," |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 " },\n" | 630 " },\n" |
631 " \"alloc-thread-id\": 47,\n" | 631 " \"alloc-thread-id\": 47,\n" |
632 " \"alloc-stack\": [\n" | 632 " \"alloc-stack\": [\n" |
633 " \"0x00000001\", \"0x00000002\"\n" | 633 " \"0x00000001\", \"0x00000002\"\n" |
634 " ],\n" | 634 " ],\n" |
635 " \"contents\": {\n" | 635 " \"contents\": {\n" |
636 " \"type\": \"blob\",\n" | 636 " \"type\": \"blob\",\n" |
637 " \"address\": \"0x%08zX\",\n" | 637 " \"address\": \"0x%08zX\",\n" |
638 " \"size\": null,\n" | 638 " \"size\": null,\n" |
639 " \"data\": [\n" | 639 " \"data\": [\n" |
640 " \"0x80\", \"0xCA\", \"0x00\", \"0x00\", \"0x20\", \"0x00\"," | 640 " \"0x80\", \"0xCA\", \"0x00\", \"0x00\", \"0x10\", \"0x00\"," |
641 " \"0x00\", \"0x00\",\n" | 641 " \"0x00\", \"0x00\",\n" |
642 " \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\"," | 642 " \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\"," |
643 " \"0x00\", \"0x00\",\n" | 643 " \"0x00\", \"0x00\",\n" |
644 " \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\"," | 644 " \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\"," |
645 " \"0x00\", \"0x00\",\n" | 645 " \"0x00\", \"0x00\",\n" |
646 #ifdef _WIN64 | 646 #ifdef _WIN64 |
647 " \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\"," | 647 " \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\", \"0x00\"," |
648 " \"0x00\", \"0x00\",\n" | 648 " \"0x00\", \"0x00\",\n" |
649 #endif | 649 #endif |
650 " \"0xC3\", \"0xC3\", \"0xC3\", \"0xC3\", \"0x00\", \"0x00\"," | 650 " \"0xC3\", \"0xC3\", \"0xC3\", \"0xC3\", \"0x00\", \"0x00\"," |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 EXPECT_EQ(block_info.state, error_info_from_proto.block_info.state); | 954 EXPECT_EQ(block_info.state, error_info_from_proto.block_info.state); |
955 EXPECT_EQ(block_info.heap_type, error_info_from_proto.block_info.heap_type); | 955 EXPECT_EQ(block_info.heap_type, error_info_from_proto.block_info.heap_type); |
956 EXPECT_EQ(block_info.alloc_tid, error_info_from_proto.block_info.alloc_tid); | 956 EXPECT_EQ(block_info.alloc_tid, error_info_from_proto.block_info.alloc_tid); |
957 EXPECT_EQ(block_info.free_tid, error_info_from_proto.block_info.free_tid); | 957 EXPECT_EQ(block_info.free_tid, error_info_from_proto.block_info.free_tid); |
958 EXPECT_EQ(block_info.milliseconds_since_free, | 958 EXPECT_EQ(block_info.milliseconds_since_free, |
959 error_info_from_proto.block_info.milliseconds_since_free); | 959 error_info_from_proto.block_info.milliseconds_since_free); |
960 } | 960 } |
961 | 961 |
962 } // namespace asan | 962 } // namespace asan |
963 } // namespace agent | 963 } // namespace agent |
OLD | NEW |