Skip to content

sdpscanner: fix format strings for (u)int64_t

This probably only worked on Little-Endian machines, but it's UB there, too, of course.

Wasn't detected by the compiler because qsnprintf() doen't have attribute(printf), for some reason.

Prepare the folded part of the line so a follow-up port to std::snprintf() doesn't have to re-indent it.

Amends 3ee0be10.

[ChangeLog][QtBluetooth][sdpscanner] Fixed a bug involving broken serialization of SDP_(U)INT64 DTDs on Big-Endian machines.

Pick-to: 6.8 6.7 6.5 6.2 5.15 Change-Id: Ib4e24007cf498814f3c91b5a57e7dfd6a311926c Reviewed-by: Ivan Solovev ivan.solovev@qt.io Reviewed-by: Thiago Macieira thiago.macieira@intel.com (cherry picked from commit fcee2074)

Merge request reports

Loading