[PR #85] Fix unsigned vs. signed problem #1050

Open
opened 2026-01-29 15:39:58 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/aaru-dps/Aaru/pull/85

State: closed
Merged: Yes


Fix crash on Windows when using list-devices.

Problem is that the fields in the StorageDeviceDescriptor are uint, then checked against > 0, then cast to int, which crashes the string indexing in CToString(...)

**Original Pull Request:** https://github.com/aaru-dps/Aaru/pull/85 **State:** closed **Merged:** Yes --- Fix [crash](https://pastebin.com/TZNVX3dw) on Windows when using `list-devices`. Problem is that the fields in the `StorageDeviceDescriptor` are uint, then checked against `> 0`, then cast to int, which crashes the string indexing in `CToString(...)`
claunia added the pull-request label 2026-01-29 15:39:58 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaru-dps/Aaru-aaru-dps#1050