Project

General

Profile

Actions

Bug #57308

closed
LP LP

Incorrect err pointer casts on Windows

Bug #57308: Incorrect err pointer casts on Windows

Added by Lucian Petrut over 4 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
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):
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.


Related issues 2 (0 open — 2 closed)

Copied to Ceph - Backport #57402: quincy: Incorrect err pointer casts on WindowsResolvedIlya Dryomov

Actions
Copied to Ceph - Backport #57403: pacific: Incorrect err pointer casts on WindowsResolvedLucian Petrut

Actions

ID Updated by Ilya Dryomov over 4 years ago Actions #1

  • Status changed from New to Fix Under Review
  • Pull request ID set to 47818

LP Updated by Lucian Petrut about 4 years ago Actions #2

  • Status changed from Fix Under Review to Pending Backport

LP Updated by Lucian Petrut about 4 years ago Actions #3

  • Copied to Backport #57402: quincy: Incorrect err pointer casts on Windows added

LP Updated by Lucian Petrut about 4 years ago Actions #4

  • Copied to Backport #57403: pacific: Incorrect err pointer casts on Windows added

KS Updated by Konstantin Shalygin about 4 years ago Actions #6

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100

UB Updated by Upkeep Bot over 1 year ago Actions #7

  • 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

Also available in: PDF Atom