Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1003 closed defect (fixed)

INT64 conversion defect in RSMgFeatureReader::GetAsString()

Reported by: andymorf Owned by: brucedechant
Priority: high Milestone: 2.1
Component: Mapping Service Version: 2.0.2
Severity: major Keywords: int64 conversion
Cc: External ID:

Description

The conversion of Int64 to String is done with 'swprintf(temp, MAX_STRING, L"%d", llVal)' This only provides the first 4 bytes of the Int64 which leads to wrong output on the client side. In VC++ a correct conversion may be achieved by "%%I64d"

Change History (4)

comment:1 by tomfukushima, 15 years ago

Owner: set to BruceDechant

Bruce, would you be able to validate and apply this change?

comment:2 by brucedechant, 15 years ago

Owner: changed from BruceDechant to brucedechant
Status: newassigned

The fix for both Windows and Linux is to use "%lld" as "%I64d" only works on Windows.

comment:3 by brucedechant, 15 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Trunk r4188 Branches/2.1 r4189

comment:4 by brucedechant, 15 years ago

Summary: conversion defect in RSMgFeatureReader::GetAsString()INT64 conversion defect in RSMgFeatureReader::GetAsString()
Note: See TracTickets for help on using tickets.