Actions
Bug #57308
closed
LP
LP
Incorrect err pointer casts on Windows
Bug #57308:
Incorrect err pointer casts on Windows
Due date:
% Done:
100%
Source:
Backport:
quincy pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Tags (freeform):
Merge Commit:
Fixed In:
v17.0.0-14747-gaf4906e084e
Released In:
v18.2.0~1422
Upkeep Timestamp:
2025-07-13T05:41:13+00:00
Description
The "long" type uses 32b on x64 Windows platforms, which means it's not large enough to store a pointer. intptr_t or uintptr_t should be used instead.
include/err.h is affected by this issue. There was a previous patch on this topic but unfortunately it didn't address all the type casts.
This was brought up by the unittest_crush test, which recently started to fail as the CrushWrapper methods use IS_ERR.
ID Updated by Ilya Dryomov over 4 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 47818
LP Updated by Lucian Petrut about 4 years ago
- Status changed from Fix Under Review to Pending Backport
LP Updated by Lucian Petrut about 4 years ago
- Copied to Backport #57402: quincy: Incorrect err pointer casts on Windows added
LP Updated by Lucian Petrut about 4 years ago
- Copied to Backport #57403: pacific: Incorrect err pointer casts on Windows added
KS Updated by Konstantin Shalygin about 4 years ago
- Status changed from Pending Backport to Resolved
- % Done changed from 0 to 100
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to af4906e084e997f334ff067a21c80c233d8aa78a
- Fixed In set to v17.0.0-14747-gaf4906e084e
- Released In set to v18.2.0~1422
- Upkeep Timestamp set to 2025-07-13T05:41:13+00:00
Actions