mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
b2cb6bb48a
musl libc through 1.1.23 has an x87 floating-point stack adjustment
imbalance, related to the math/i386/ directory. In some cases, use of
this library could introduce out-of-bounds writes that are not present
in an application's source code.
This problem only affects x86 and no other architectures.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit c262daf308
)
29 lines
727 B
Diff
29 lines
727 B
Diff
From 6818c31c9bc4bbad5357f1de14bedf781e5b349e Mon Sep 17 00:00:00 2001
|
|
From: Rich Felker <dalias@aerifal.cx>
|
|
Date: Mon, 5 Aug 2019 19:57:07 -0400
|
|
Subject: fix build regression in i386 asm for atan2, atan2f
|
|
|
|
commit f3ed8bfe8a82af1870ddc8696ed4cc1d5aa6b441 inadvertently removed
|
|
labels that were still needed.
|
|
---
|
|
src/math/i386/atan2.s | 2 +-
|
|
src/math/i386/atan2f.s | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/src/math/i386/atan2.s
|
|
+++ b/src/math/i386/atan2.s
|
|
@@ -11,4 +11,4 @@ atan2:
|
|
jae 1f
|
|
# subnormal x, return x with underflow
|
|
fsts 4(%esp)
|
|
- ret
|
|
+1: ret
|
|
--- a/src/math/i386/atan2f.s
|
|
+++ b/src/math/i386/atan2f.s
|
|
@@ -13,4 +13,4 @@ atan2f:
|
|
fld %st(0)
|
|
fmul %st(1)
|
|
fstps 4(%esp)
|
|
- ret
|
|
+1: ret
|