* [Buildroot] [PATCH v2, 1/1] package/reaver: fix static build on m68k
@ 2019-02-22 20:12 Fabrice Fontaine
2019-02-22 20:37 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Fontaine @ 2019-02-22 20:12 UTC (permalink / raw)
To: buildroot
Fixes:
- http://autobuild.buildroot.org/results/935c038b921ffa0f185571de41223e4c201e964b
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
Changes v1 -> v2 (after review of Peter Korsgaard):
- Use upstream patch
package/reaver/0001-fix-271.patch | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 package/reaver/0001-fix-271.patch
diff --git a/package/reaver/0001-fix-271.patch b/package/reaver/0001-fix-271.patch
new file mode 100644
index 0000000000..9f6b395120
--- /dev/null
+++ b/package/reaver/0001-fix-271.patch
@@ -0,0 +1,32 @@
+From c7040da3a9ff98cd8063b9d5b5a7721374186391 Mon Sep 17 00:00:00 2001
+From: rofl0r <retnyg@gmx.net>
+Date: Fri, 22 Feb 2019 17:38:24 +0000
+Subject: [PATCH] fix #271
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Retrieved from:
+https://github.com/t6x/reaver-wps-fork-t6x/commit/c7040da3a9ff98cd8063b9d5b5a7721374186391]
+---
+ src/wps/wps_attr_parse.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/wps/wps_attr_parse.c b/src/wps/wps_attr_parse.c
+index 30b0e79..d681b70 100644
+--- a/src/wps/wps_attr_parse.c
++++ b/src/wps/wps_attr_parse.c
+@@ -443,12 +443,12 @@ int wps_parse_msg(const struct wpabuf *msg, struct wps_parse_attr *attr)
+ * Mac OS X 10.6 seems to be adding 0x00 padding to the
+ * end of M1. Skip those to avoid interop issues.
+ */
+- int i;
+- for (i = 0; i < end - pos; i++) {
++ uintptr_t i, left = end - pos;
++ for (i = 0; i < left; i++) {
+ if (pos[i])
+ break;
+ }
+- if (i == end - pos) {
++ if (i == left) {
+ wpa_printf(MSG_DEBUG, "WPS: Workaround - skip "
+ "unexpected message padding");
+ break;
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2, 1/1] package/reaver: fix static build on m68k
2019-02-22 20:12 [Buildroot] [PATCH v2, 1/1] package/reaver: fix static build on m68k Fabrice Fontaine
@ 2019-02-22 20:37 ` Thomas Petazzoni
2019-02-22 20:43 ` Fabrice Fontaine
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2019-02-22 20:37 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 22 Feb 2019 21:12:34 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fixes:
> - http://autobuild.buildroot.org/results/935c038b921ffa0f185571de41223e4c201e964b
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
How is this related to static linking ? It seems to be a m68k issue
that would also occur when dynamic linking (if m68k had support for
that).
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2, 1/1] package/reaver: fix static build on m68k
2019-02-22 20:37 ` Thomas Petazzoni
@ 2019-02-22 20:43 ` Fabrice Fontaine
0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2019-02-22 20:43 UTC (permalink / raw)
To: buildroot
Dear Thomas,
Le ven. 22 f?vr. 2019 ? 21:37, Thomas Petazzoni
<thomas.petazzoni@bootlin.com> a ?crit :
>
> Hello,
>
> On Fri, 22 Feb 2019 21:12:34 +0100
> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
>
> > Fixes:
> > - http://autobuild.buildroot.org/results/935c038b921ffa0f185571de41223e4c201e964b
> >
> > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>
> How is this related to static linking ? It seems to be a m68k issue
> that would also occur when dynamic linking (if m68k had support for
> that).
Indeed, I'll update the title.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
Best Regards,
Fabrice
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-02-22 20:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-22 20:12 [Buildroot] [PATCH v2, 1/1] package/reaver: fix static build on m68k Fabrice Fontaine
2019-02-22 20:37 ` Thomas Petazzoni
2019-02-22 20:43 ` Fabrice Fontaine
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox