Actions
Bug #57308
closedIncorrect err pointer casts on Windows
% Done:
100%
Source:
Tags:
Backport:
quincy pacific
Regression:
No
Severity:
3 - minor
Reviewed:
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.
Updated by Ilya Dryomov over 1 year ago
- Status changed from New to Fix Under Review
- Pull request ID set to 47818
Updated by Lucian Petrut over 1 year ago
- Status changed from Fix Under Review to Pending Backport
Updated by Lucian Petrut over 1 year ago
- Copied to Backport #57402: quincy: Incorrect err pointer casts on Windows added
Updated by Lucian Petrut over 1 year ago
- Copied to Backport #57403: pacific: Incorrect err pointer casts on Windows added
Updated by Konstantin Shalygin over 1 year ago
- Status changed from Pending Backport to Resolved
- % Done changed from 0 to 100
- Tags deleted (
backport_processed)
Actions