OSVR / OSVR/libfunctionality

Handle dlerror better

未关闭
#14 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

enhancement help wanted
主要语言
CMake
星标
9
派生
16
PR 合并指标
30 天内没有已合并 PR

描述

A contributor on a related project brought up that the lone dlerror before we attempt to load the library in the libdl pathway may be harmful somehow, and we're certainly not doing anything useful with the returned string when we get an error after trying to load when we could be.

Conversation link: https://github.com/OSVR/OSVR-Vive/pull/10#discussion_r58945956

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

先阅读链接的 OSVR-Vive pull request 讨论,然后在此仓库中定位 libdl 路径,并跟踪两处 dlerror 调用。确定应如何处理返回的错误字符串,并确认尝试加载库后发生失败时的行为。

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

评估

领域
operating-systems
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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