diff options
| -rw-r--r-- | .github/workflows/coverage.yaml | 2 | ||||
| -rw-r--r-- | include/string.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 28a2cd6..778aa6b 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml | |||
| @@ -43,7 +43,7 @@ jobs: | |||
| 43 | - name: Setup Pages | 43 | - name: Setup Pages |
| 44 | uses: actions/configure-pages@v3 | 44 | uses: actions/configure-pages@v3 |
| 45 | - name: Upload artifact | 45 | - name: Upload artifact |
| 46 | uses: actions/upload-pages-artifact@v1 | 46 | uses: actions/upload-pages-artifact@v3 |
| 47 | with: | 47 | with: |
| 48 | # Upload entire repository | 48 | # Upload entire repository |
| 49 | path: './tests/coverage/' | 49 | path: './tests/coverage/' |
diff --git a/include/string.h b/include/string.h index 2e2b29c..be8229d 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -44,8 +44,13 @@ __fh_access(read_only, 2, 3) | |||
| 44 | #if __has_builtin(__builtin_memcpy) | 44 | #if __has_builtin(__builtin_memcpy) |
| 45 | __diagnose_as_builtin(__builtin_memcpy, 1, 2, 3) | 45 | __diagnose_as_builtin(__builtin_memcpy, 1, 2, 3) |
| 46 | #endif | 46 | #endif |
| 47 | #if __STDC_VERSION__>=199901L | ||
| 47 | _FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od, | 48 | _FORTIFY_FN(memcpy) void *memcpy(void * _FORTIFY_POS0 __od, |
| 48 | const void * _FORTIFY_POS0 __os, size_t __n) | 49 | const void * _FORTIFY_POS0 __os, size_t __n) |
| 50 | #else | ||
| 51 | _FORTIFY_FN(memcpy) void *memcpy(void *restrict _FORTIFY_POS0 __od, | ||
| 52 | const void *restrict _FORTIFY_POS0 __os, size_t __n) | ||
| 53 | #endif | ||
| 49 | __error_if((__fh_bos(__od, 0) < __n), "'memcpy' called with `n` bigger than the size of `d`.") | 54 | __error_if((__fh_bos(__od, 0) < __n), "'memcpy' called with `n` bigger than the size of `d`.") |
| 50 | { | 55 | { |
| 51 | #if __has_builtin(__builtin___memcpy_chk) && FORTIFY_USE_NATIVE_CHK | 56 | #if __has_builtin(__builtin___memcpy_chk) && FORTIFY_USE_NATIVE_CHK |
