diff options
Diffstat (limited to 'meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch')
-rw-r--r-- | meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch b/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch index 7ca582fe5d..5e240bfea5 100644 --- a/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch +++ b/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch | |||
@@ -1,26 +1,25 @@ | |||
1 | From 3af5a1e579e3324a13ba1f892c7befb3ab32d899 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | 1 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 7 Mar 2019 21:56:57 -0800 | 2 | |
4 | Subject: [PATCH] pattern.c: Change string lenght parameter to be size_t in | 3 | pattern.c: Change string lenght parameter to be size_t in do_row() |
5 | do_row() | ||
6 | 4 | ||
7 | This fixes below error on some architectures e.g. RISC-V | 5 | This fixes below error on some architectures e.g. RISC-V |
8 | 6 | ||
9 | pattern.c:455:9: error: 'memset' specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=] 455 | memset(deduced, DOT, (size_t)len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 7 | pattern.c:455:9: error: 'memset' specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Werror=stringop-overflow=] 455 | memset(deduced, DOT, (size_t)len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
10 | 8 | ||
11 | Upstream-Status: Pending | 9 | Upstream-Status: Submitted [email discussion with upstream] |
12 | 10 | ||
11 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
14 | 13 | ||
15 | --- | 14 | --- |
16 | pattern.c | 2 +- | 15 | pattern.c | 2 +- |
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
18 | 17 | ||
19 | diff --git a/pattern.c b/pattern.c | 18 | Index: git/pattern.c |
20 | index ffadd3f..4e5f187 100644 | 19 | =================================================================== |
21 | --- a/pattern.c | 20 | --- git.orig/pattern.c |
22 | +++ b/pattern.c | 21 | +++ git/pattern.c |
23 | @@ -428,7 +428,7 @@ static bool do_row(unsigned char *known, unsigned char *deduced, | 22 | @@ -429,7 +429,7 @@ static bool do_row(unsigned char *known, |
24 | unsigned char *row, | 23 | unsigned char *row, |
25 | unsigned char *minpos_done, unsigned char *maxpos_done, | 24 | unsigned char *minpos_done, unsigned char *maxpos_done, |
26 | unsigned char *minpos_ok, unsigned char *maxpos_ok, | 25 | unsigned char *minpos_ok, unsigned char *maxpos_ok, |
@@ -29,6 +28,3 @@ index ffadd3f..4e5f187 100644 | |||
29 | unsigned int *changed | 28 | unsigned int *changed |
30 | #ifdef STANDALONE_SOLVER | 29 | #ifdef STANDALONE_SOLVER |
31 | , const char *rowcol, int index, int cluewid | 30 | , const char *rowcol, int index, int cluewid |
32 | -- | ||
33 | 2.17.1 | ||
34 | |||