Opened 9 years ago

Closed 9 years ago

Last modified 9 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 Changed 9 years ago by tomfukushima

Owner: set to BruceDechant

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

comment:2 Changed 9 years ago by brucedechant

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 Changed 9 years ago by brucedechant

Resolution: fixed
Status: assignedclosed

Fixed.

Trunk r4188 Branches/2.1 r4189

comment:4 Changed 9 years ago by brucedechant

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