Closed Bug 1874383 Opened 2 years ago Closed 1 year ago

Remove deprecated sprintf function in dbtool.c

Categories

(NSS :: Libraries, defect, P2)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: noah.lokocz, Assigned: noah.lokocz)

Details

Attachments

(1 file)

The deprecated function sprintf is used within dbtool.c in multiple places. It should be replaced with snprintf.

Since the macOS 13 SDK shipping in Xcode 14.1, the functions sprintf and vsprintf are deprecated. AFAIK this deprecation is not present on version of clang outside macOS. However, since using this function will lead to build failures on machines running macOS and snprintf is generally the better function to use, it is probably useful to reflect this in the CI as well, which does not seem to be the case currently.

Keywords: sec-audit

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: noah.lokocz → nobody
Assignee: nobody → noah.lokocz
Group: crypto-core-security
Status: NEW → RESOLVED
Closed: 1 year ago
Keywords: sec-audit
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: