11 Star 76 Fork 100

OpenHarmony / third_party_lwip

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
0092-fix-the-coredump-issue-when-UDP-traffic-is-sent.patch 846 Bytes
一键复制 编辑 原始数据 按行查看 历史
Aurora 提交于 2024-03-28 16:36 . update lwip from 2.1.3-90 to 2.1.3-102
From defef8f57ee35b510c4a542e54237f664ac31d5d Mon Sep 17 00:00:00 2001
From: root <wuchangye@huawei.com>
Date: Sat, 9 Dec 2023 16:54:47 +0800
Subject: [PATCH] fix the coredump issue when UDP traffic is sent
---
src/api/sockets.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/api/sockets.c b/src/api/sockets.c
index d488b5b..a9d39ae 100644
--- a/src/api/sockets.c
+++ b/src/api/sockets.c
@@ -1865,7 +1865,13 @@ lwip_sendto(int s, const void *data, size_t size, int flags,
} else
#endif /* LWIP_CHECKSUM_ON_COPY */
{
+#if GAZELLE_ENABLE
+ /* In the gazelle scenario, the payload is stored in send_ring,
+ and the payload stores the sock pointer information. */
+ buf.p->payload = (void *)sock;
+#else
MEMCPY(buf.p->payload, data, short_size);
+#endif
}
err = ERR_OK;
}
--
2.30.0
1
https://gitee.com/openharmony/third_party_lwip.git
git@gitee.com:openharmony/third_party_lwip.git
openharmony
third_party_lwip
third_party_lwip
master

搜索帮助