| 标题 | GitHub wondertrader 0.9.9 Use of Uninitialized Variable |
|---|
| 描述 | WonderTrader’s TraderATP cash trade conversion creates WTSTradeInfo records without setting offsetType, while WTSTradeInfo does not initialize m_offsetType in its constructor. As a result, ATP cash trade reports can inherit stale open/close state from reused object-pool memory. A cash sell report may therefore be interpreted by the core as WDT_SHORT + WOT_OPEN and recorded as short-open volume instead of the expected long-close volume, corrupting trade statistics, position semantics, and downstream strategy or risk-control decisions. |
|---|
| 来源 | ⚠️ https://my.feishu.cn/wiki/PyAuwg8Bwit3TBk5DgLc14Ghnkb?from=from_copylink |
|---|
| 用户 | sannomiya (UID 98147) |
|---|
| 提交 | 2026-06-21 15時23分 (2 月前) |
|---|
| 管理 | 2026-08-07 10時39分 (2 months later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 386957 [WonderTrader 直到 0.9.9 TraderATP Cash Trade Conversion WTSTradeDef.hpp m_offsetType 拒绝服务] |
|---|
| 积分 | 20 |
|---|