arduino / arduino/ArduinoCore-API

Always true condition in IPAddress string-to-ipv6 conversion

未关闭
#249 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
C++
星标
306
派生
150
PR 合并指标
30 天内没有已合并 PR

描述

Always true condition in IPAddress string-to-ipv6 conversion

https://github.com/arduino/ArduinoCore-API/blob/master/api/IPAddress.cpp#L204

`*address` is checked to be `':'` so it cannot be `'\0'`. I'm not really sure what the intended behaviour is here.

贡献指南

这个仓库没有索引到贡献指南

调研方向

阅读 api/IPAddress.cpp 第 204 行附近的代码,并检查周围的字符串到 IPv6 转换逻辑。确定当被检查的字符不可能是 '\0' 时的预期行为,然后根据转换行为验证由此产生的修正;当条件及其预期行为一致时,该 issue 即得到解决。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
api, embedded-iot
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
需要澄清
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。