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 | 30 |
1 files changed, 0 insertions, 30 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 deleted file mode 100644 index 5e240bfea5..0000000000 --- a/meta/recipes-sato/puzzles/files/0001-pattern.c-Change-string-lenght-parameter-to-be-size_.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From: Khem Raj <raj.khem@gmail.com> | ||
2 | |||
3 | pattern.c: Change string lenght parameter to be size_t in do_row() | ||
4 | |||
5 | This fixes below error on some architectures e.g. RISC-V | ||
6 | |||
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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
8 | |||
9 | Upstream-Status: Submitted [email discussion with upstream] | ||
10 | |||
11 | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | |||
14 | --- | ||
15 | pattern.c | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | Index: git/pattern.c | ||
19 | =================================================================== | ||
20 | --- git.orig/pattern.c | ||
21 | +++ git/pattern.c | ||
22 | @@ -429,7 +429,7 @@ static bool do_row(unsigned char *known, | ||
23 | unsigned char *row, | ||
24 | unsigned char *minpos_done, unsigned char *maxpos_done, | ||
25 | unsigned char *minpos_ok, unsigned char *maxpos_ok, | ||
26 | - unsigned char *start, int len, int step, int *data, | ||
27 | + unsigned char *start, size_t len, int step, int *data, | ||
28 | unsigned int *changed | ||
29 | #ifdef STANDALONE_SOLVER | ||
30 | , const char *rowcol, int index, int cluewid | ||