Project

General

Profile

Actions

Bug #15035

open

stlogit() should use vsyslog instead of a 16kb local buffer

Added by Matt Barden 2 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
lib - userland libraries
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

libpkcs11's pkcs11_tpm defines two functions 'stlogit' and 'stlogit2' that are used for logging messages to syslog.
These functions define a 16k local buffer, vsnprintf() the message into it, and then call syslog() on the result.

vsyslog() exists as an interface these functions could use in order to avoid allocating 16kb of stack space.

Unfortunately, I don't have the details for how I hit this (maybe SC_GetMechanismList or SC_GetMechanismInfo?), so I'm not sure how one would test a fix.

No data to display

Actions

Also available in: Atom PDF