Title: testclangimport.cpp: fixed potential nullptr dereference in parse() by firewave · Pull Request #2927 · cppcheck-opensource/cppcheck · GitHub
Open Graph Title: testclangimport.cpp: fixed potential nullptr dereference in parse() by firewave · Pull Request #2927 · cppcheck-opensource/cppcheck
X Title: testclangimport.cpp: fixed potential nullptr dereference in parse() by firewave · Pull Request #2927 · cppcheck-opensource/cppcheck
Description: Reported by Clang UBSAN TestClangImport::classTemplateDecl1 test/testclangimport.cpp:130:36: runtime error: member call on null pointer of type 'Token' #0 0x92f5cf in TestClangImport::parse[abi:cxx11](char const*) /home/runner/work/cppcheck/cppcheck/test/testclangimport.cpp:130:36 #1 0x923c25 in TestClangImport::classTemplateDecl1() /home/runner/work/cppcheck/cppcheck/test/testclangimport.cpp:220:9 #2 0x91c833 in TestClangImport::run() /home/runner/work/cppcheck/cppcheck/test/testclangimport.cpp:38:9 #3 0xde6c2c in TestFixture::runTests(options const&) /home/runner/work/cppcheck/cppcheck/test/testsuite.cpp:332:23 #4 0xcbdde4 in main /home/runner/work/cppcheck/cppcheck/test/testrunner.cpp:44:46 #5 0x7efea62fdbf6 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21bf6) #6 0x8570b9 in _start (/home/runner/work/cppcheck/cppcheck/testrunner+0x8570b9)
Open Graph Description: Reported by Clang UBSAN TestClangImport::classTemplateDecl1 test/testclangimport.cpp:130:36: runtime error: member call on null pointer of type 'Token' #0 0x92f5cf in TestClangImport::p...
X Description: Reported by Clang UBSAN TestClangImport::classTemplateDecl1 test/testclangimport.cpp:130:36: runtime error: member call on null pointer of type 'Token' #0 0x92f5cf in TestClangI...
Opengraph URL: https://github.com/cppcheck-opensource/cppcheck/pull/2927
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c3642b9f-57d8-edd0-916f-afb76cb8c930 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BF58:386A2A:1D322:26863:6A532845 |
| html-safe-nonce | cd9f3a1905dd7d6f5de63828d387c10ba227907ce538bda6686d822d2a0af4f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjU4OjM4NkEyQToxRDMyMjoyNjg2Mzo2QTUzMjg0NSIsInZpc2l0b3JfaWQiOiI4Nzk4ODUyNzE2NTczMTczODI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 98f758bc9a4a33ef34695f7a5fae0ff1d1c2f0ca454b93968c44eccf64c84195 |
| hovercard-subject-tag | pull_request:529186639 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cppcheck-opensource/cppcheck/pull/2927/files |
| twitter:image | https://avatars.githubusercontent.com/u/242857?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/242857?s=400&v=4 |
| og:image:alt | Reported by Clang UBSAN TestClangImport::classTemplateDecl1 test/testclangimport.cpp:130:36: runtime error: member call on null pointer of type 'Token' #0 0x92f5cf in TestClangImport::p... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/cppcheck-opensource/cppcheck git https://github.com/cppcheck-opensource/cppcheck.git |
| octolytics-dimension-user_id | 278097703 |
| octolytics-dimension-user_login | cppcheck-opensource |
| octolytics-dimension-repository_id | 143131 |
| octolytics-dimension-repository_nwo | cppcheck-opensource/cppcheck |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 143131 |
| octolytics-dimension-repository_network_root_nwo | cppcheck-opensource/cppcheck |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width