Ticket #45771

fc_vsnprintf() local buffer not freed

Eröffnet am: 2022-10-05 10:30 Letztes Update: 2022-10-15 05:44

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
6

Details

Valgrind on S3_1 reports memory leak on get_option_malloc() called from on server for --read option.

Ticket-Verlauf (3/11 Historien)

2022-10-05 10:30 Aktualisiert von: cazfi
  • New Ticket "server.script_filename not freed" created
2022-10-05 10:38 Aktualisiert von: cazfi
  • Meilenstein Update from (Keine) to 3.0.5 (closed)
  • Komponente Update from Server to General
  • Summary Updated
Kommentar

Reply To cazfi

Valgrind on S3_1 reports memory leak on get_option_malloc() called from on server for --read option.

The leak is in fc_vsnprintf() fallback functionality allocating local buffer. The script_filename option gets freed by the garbage collecting feature of the option handling.

2022-10-08 09:14 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
2022-10-08 09:29 Aktualisiert von: cazfi
Kommentar

- Added S2_6 version. Though this is critical (not real leak, but just missing cleanup on program exit - main bad effect being spamming error logs), further fixes will be easier to backport on top of it
- New S3_1 & S3_0 versions with a fix to a build breaking typo

2022-10-15 05:44 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden