Title: simplecpp chokes on clang/master/INPUTS/stpcpy-test.c · Issue #96 · cppcheck-opensource/simplecpp · GitHub
Open Graph Title: simplecpp chokes on clang/master/INPUTS/stpcpy-test.c · Issue #96 · cppcheck-opensource/simplecpp
X Title: simplecpp chokes on clang/master/INPUTS/stpcpy-test.c · Issue #96 · cppcheck-opensource/simplecpp
Description: The following testcode from clang https://raw.githubusercontent.com/clang-ykt/clang/master/INPUTS/stpcpy-test.c causes simplecpp to choke (run out of memory): #define __extension__ #define __stpcpy(dest, src) (__extension__ (__builtin_c...
Open Graph Description: The following testcode from clang https://raw.githubusercontent.com/clang-ykt/clang/master/INPUTS/stpcpy-test.c causes simplecpp to choke (run out of memory): #define __extension__ #define __stpcp...
X Description: The following testcode from clang https://raw.githubusercontent.com/clang-ykt/clang/master/INPUTS/stpcpy-test.c causes simplecpp to choke (run out of memory): #define __extension__ #define __stpcp...
Opengraph URL: https://github.com/cppcheck-opensource/simplecpp/issues/96
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"simplecpp chokes on clang/master/INPUTS/stpcpy-test.c","articleBody":"The following testcode from clang https://raw.githubusercontent.com/clang-ykt/clang/master/INPUTS/stpcpy-test.c causes simplecpp to choke (run out of memory):\r\n```c++\r\n#define __extension__\r\n\r\n#define __stpcpy(dest, src) (__extension__ (__builtin_constant_p (src) ? (__string2_1bptr_p (src) \u0026\u0026 strlen (src) + 1 \u003c= 8 ? __stpcpy_small (dest, __stpcpy_args (src), strlen (src) + 1) : ((char *) __mempcpy (dest, src, strlen (src) + 1) - 1)) : __stpcpy (dest, src)))\r\n#define stpcpy(dest, src) __stpcpy (dest, src)\r\n#define __stpcpy_args(src) __extension__ __STRING2_SMALL_GET16 (src, 0), __extension__ __STRING2_SMALL_GET16 (src, 4), __extension__ __STRING2_SMALL_GET32 (src, 0), __extension__ __STRING2_SMALL_GET32 (src, 4)\r\n\r\n#define __mempcpy(dest, src, n) (__extension__ (__builtin_constant_p (src) \u0026\u0026 __builtin_constant_p (n) \u0026\u0026 __string2_1bptr_p (src) \u0026\u0026 n \u003c= 8 ? __mempcpy_small (dest, __mempcpy_args (src), n) : __mempcpy (dest, src, n)))\r\n#define mempcpy(dest, src, n) __mempcpy (dest, src, n)\r\n#define __mempcpy_args(src) ((char *) (src))[0], ((char *) (src))[2], ((char *) (src))[4], ((char *) (src))[6], __extension__ __STRING2_SMALL_GET16 (src, 0), __extension__ __STRING2_SMALL_GET16 (src, 4), __extension__ __STRING2_SMALL_GET32 (src, 0), __extension__ __STRING2_SMALL_GET32 (src, 4)\r\n\r\n#define __STRING2_SMALL_GET16(src, idx) (((__const unsigned char *) (__const char *) (src))[idx + 1] \u003c\u003c 8 | ((__const unsigned char *) (__const char *) (src))[idx])\r\n\r\n#define __STRING2_SMALL_GET32(src, idx) (((((__const unsigned char *) (__const char *) (src))[idx + 3] \u003c\u003c 8 | ((__const unsigned char *) (__const char *) (src))[idx + 2]) \u003c\u003c 8 | ((__const unsigned char *) (__const char *) (src))[idx + 1]) \u003c\u003c 8 | ((__const unsigned char *) (__const char *) (src))[idx])\r\n\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\nstpcpy (stpcpy (stpcpy (stpcpy (a, b), c), d), e)\r\n```\r\n\r\nThis ticket was cloned from http://trac.cppcheck.net/ticket/8038","author":{"url":"https://github.com/amai2012","@type":"Person","name":"amai2012"},"datePublished":"2017-09-01T19:38:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/96/simplecpp/issues/96"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:52f6103e-5fc2-8d7c-30b8-7cad91f9ed32 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3EE:9775E:62C51A:85BDB2:6A4EBECE |
| html-safe-nonce | c59e77155668f29a255426655455e072295528d13f70690388060329910f76b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0VFOjk3NzVFOjYyQzUxQTo4NUJEQjI6NkE0RUJFQ0UiLCJ2aXNpdG9yX2lkIjoiODg1MzY5Nzc0ODEzNTc1NTQ3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3d0cf3323e21d4b6b3981fa3b64768f9d9777d8354528d510aed897253a2db01 |
| hovercard-subject-tag | issue:254733664 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/cppcheck-opensource/simplecpp/96/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7a5a37cf786b2d06b645b604f4ea83155e2eb349b544f8a47e46bb733952c346/cppcheck-opensource/simplecpp/issues/96 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7a5a37cf786b2d06b645b604f4ea83155e2eb349b544f8a47e46bb733952c346/cppcheck-opensource/simplecpp/issues/96 |
| og:image:alt | The following testcode from clang https://raw.githubusercontent.com/clang-ykt/clang/master/INPUTS/stpcpy-test.c causes simplecpp to choke (run out of memory): #define __extension__ #define __stpcp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amai2012 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/cppcheck-opensource/simplecpp git https://github.com/cppcheck-opensource/simplecpp.git |
| octolytics-dimension-user_id | 278097703 |
| octolytics-dimension-user_login | cppcheck-opensource |
| octolytics-dimension-repository_id | 33434464 |
| octolytics-dimension-repository_nwo | cppcheck-opensource/simplecpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33434464 |
| octolytics-dimension-repository_network_root_nwo | cppcheck-opensource/simplecpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width