diff options
Diffstat (limited to 'meta/recipes-devtools/nasm/nasm/0001-stdlib-Add-strlcat.patch')
-rw-r--r-- | meta/recipes-devtools/nasm/nasm/0001-stdlib-Add-strlcat.patch | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/meta/recipes-devtools/nasm/nasm/0001-stdlib-Add-strlcat.patch b/meta/recipes-devtools/nasm/nasm/0001-stdlib-Add-strlcat.patch index d94fd3290e..0ede8a8328 100644 --- a/meta/recipes-devtools/nasm/nasm/0001-stdlib-Add-strlcat.patch +++ b/meta/recipes-devtools/nasm/nasm/0001-stdlib-Add-strlcat.patch | |||
@@ -1,12 +1,13 @@ | |||
1 | From 8a204171004fa0d7d21389530c744d215e99efb0 Mon Sep 17 00:00:00 2001 | 1 | From 1c5023002bad3a5b0bbc181fdb324160beace733 Mon Sep 17 00:00:00 2001 |
2 | From: Joshua Watt <JPEWhacker@gmail.com> | 2 | From: Joshua Watt <JPEWhacker@gmail.com> |
3 | Date: Tue, 19 Nov 2019 12:47:30 -0600 | 3 | Date: Tue, 19 Nov 2019 12:47:30 -0600 |
4 | Subject: [PATCH 1/2] stdlib: Add strlcat | 4 | Subject: [PATCH] stdlib: Add strlcat |
5 | 5 | ||
6 | Adds strlcat which can be used to safely concatenate strings | 6 | Adds strlcat which can be used to safely concatenate strings |
7 | 7 | ||
8 | Upstream-Status: Submitted [https://bugzilla.nasm.us/show_bug.cgi?id=3392635] | 8 | Upstream-Status: Submitted [https://bugzilla.nasm.us/show_bug.cgi?id=3392635] |
9 | Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> | 9 | Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> |
10 | |||
10 | --- | 11 | --- |
11 | Makefile.in | 2 +- | 12 | Makefile.in | 2 +- |
12 | configure.ac | 2 ++ | 13 | configure.ac | 2 ++ |
@@ -16,10 +17,10 @@ Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> | |||
16 | create mode 100644 stdlib/strlcat.c | 17 | create mode 100644 stdlib/strlcat.c |
17 | 18 | ||
18 | diff --git a/Makefile.in b/Makefile.in | 19 | diff --git a/Makefile.in b/Makefile.in |
19 | index 32ef3d91..ff7eb447 100644 | 20 | index bfae1f8..156dc4c 100644 |
20 | --- a/Makefile.in | 21 | --- a/Makefile.in |
21 | +++ b/Makefile.in | 22 | +++ b/Makefile.in |
22 | @@ -93,7 +93,7 @@ NASM = asm/nasm.$(O) | 23 | @@ -101,7 +101,7 @@ NASM = asm/nasm.$(O) |
23 | NDISASM = disasm/ndisasm.$(O) | 24 | NDISASM = disasm/ndisasm.$(O) |
24 | 25 | ||
25 | LIBOBJ = stdlib/snprintf.$(O) stdlib/vsnprintf.$(O) stdlib/strlcpy.$(O) \ | 26 | LIBOBJ = stdlib/snprintf.$(O) stdlib/vsnprintf.$(O) stdlib/strlcpy.$(O) \ |
@@ -27,20 +28,20 @@ index 32ef3d91..ff7eb447 100644 | |||
27 | + stdlib/strnlen.$(O) stdlib/strrchrnul.$(O) stdlib/strlcat.$(O) \ | 28 | + stdlib/strnlen.$(O) stdlib/strrchrnul.$(O) stdlib/strlcat.$(O) \ |
28 | \ | 29 | \ |
29 | nasmlib/ver.$(O) \ | 30 | nasmlib/ver.$(O) \ |
30 | nasmlib/crc64.$(O) nasmlib/malloc.$(O) nasmlib/errfile.$(O) \ | 31 | nasmlib/alloc.$(O) nasmlib/asprintf.$(O) nasmlib/errfile.$(O) \ |
31 | diff --git a/configure.ac b/configure.ac | 32 | diff --git a/configure.ac b/configure.ac |
32 | index 38b3b596..b4e88778 100644 | 33 | index 7b72769..14fd033 100644 |
33 | --- a/configure.ac | 34 | --- a/configure.ac |
34 | +++ b/configure.ac | 35 | +++ b/configure.ac |
35 | @@ -152,6 +152,7 @@ AC_CHECK_FUNCS([vsnprintf _vsnprintf]) | 36 | @@ -234,6 +234,7 @@ PA_FUNC_SNPRINTF |
36 | AC_CHECK_FUNCS([snprintf _snprintf]) | 37 | PA_FUNC_VSNPRINTF |
37 | AC_CHECK_FUNCS([strlcpy]) | 38 | AC_CHECK_FUNCS([strlcpy]) |
38 | AC_CHECK_FUNCS([strrchrnul]) | 39 | AC_CHECK_FUNCS([strrchrnul]) |
39 | +AC_CHECK_FUNCS([strlcat]) | 40 | +AC_CHECK_FUNCS([strlcat]) |
40 | 41 | ||
41 | dnl These types are POSIX-specific, and Windows does it differently... | 42 | dnl These types are POSIX-specific, and Windows does it differently... |
42 | AC_CHECK_TYPES([struct _stati64]) | 43 | AC_CHECK_TYPES([struct _stati64]) |
43 | @@ -170,6 +171,7 @@ AC_CHECK_DECLS(strsep) | 44 | @@ -253,6 +254,7 @@ AC_CHECK_DECLS(strsep) |
44 | AC_CHECK_DECLS(strlcpy) | 45 | AC_CHECK_DECLS(strlcpy) |
45 | AC_CHECK_DECLS(strnlen) | 46 | AC_CHECK_DECLS(strnlen) |
46 | AC_CHECK_DECLS(strrchrnul) | 47 | AC_CHECK_DECLS(strrchrnul) |
@@ -49,10 +50,10 @@ index 38b3b596..b4e88778 100644 | |||
49 | dnl Check for missing types | 50 | dnl Check for missing types |
50 | AC_TYPE_UINTPTR_T | 51 | AC_TYPE_UINTPTR_T |
51 | diff --git a/include/compiler.h b/include/compiler.h | 52 | diff --git a/include/compiler.h b/include/compiler.h |
52 | index 4178c98e..8153d297 100644 | 53 | index b4fd3a8..7fb4821 100644 |
53 | --- a/include/compiler.h | 54 | --- a/include/compiler.h |
54 | +++ b/include/compiler.h | 55 | +++ b/include/compiler.h |
55 | @@ -159,6 +159,10 @@ size_t strlcpy(char *, const char *, size_t); | 56 | @@ -169,6 +169,10 @@ size_t strlcpy(char *, const char *, size_t); |
56 | char *strrchrnul(const char *, int); | 57 | char *strrchrnul(const char *, int); |
57 | #endif | 58 | #endif |
58 | 59 | ||
@@ -65,7 +66,7 @@ index 4178c98e..8153d297 100644 | |||
65 | # include <stdbool.h> | 66 | # include <stdbool.h> |
66 | diff --git a/stdlib/strlcat.c b/stdlib/strlcat.c | 67 | diff --git a/stdlib/strlcat.c b/stdlib/strlcat.c |
67 | new file mode 100644 | 68 | new file mode 100644 |
68 | index 00000000..7084d460 | 69 | index 0000000..7084d46 |
69 | --- /dev/null | 70 | --- /dev/null |
70 | +++ b/stdlib/strlcat.c | 71 | +++ b/stdlib/strlcat.c |
71 | @@ -0,0 +1,43 @@ | 72 | @@ -0,0 +1,43 @@ |
@@ -112,6 +113,3 @@ index 00000000..7084d460 | |||
112 | + | 113 | + |
113 | +#endif | 114 | +#endif |
114 | + | 115 | + |
115 | -- | ||
116 | 2.23.0 | ||
117 | |||