From f2380a53fb84d370eaf6e6c3473062c54c57fac7 Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Mon, 1 Feb 2021 10:12:16 +1300 Subject: [PATCH] Prevent potential double-free in TNEFSubjectHandler If TNEFSubjectHandler is called multiple times, but the last time failed due to the PREALLOCCHECK, the subject.data member will be a freed, but invalid pointer. To prevent a double-free next time TNEFSubjectHandler is entered, set it to zero after freeing. Resolves: #85 Reported-by: jasperla --- lib/ytnef.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ytnef.c b/lib/ytnef.c index b148719..b06c807 100644 --- a/lib/ytnef.c +++ b/lib/ytnef.c @@ -301,8 +301,10 @@ int TNEFFromHandler STD_ARGLIST { } // ----------------------------------------------------------------------------- int TNEFSubjectHandler STD_ARGLIST { - if (TNEF->subject.data) + if (TNEF->subject.data) { free(TNEF->subject.data); + TNEF->subject.data = NULL; + } PREALLOCCHECK(size, 100); TNEF->subject.data = calloc(size+1, sizeof(BYTE)); /guix/'>summaryrefslogtreecommitdiff
path: root/gnu/packages/julia-jll.scm
AgeCommit message (Expand)Author
2023-02-15gnu: Add julia-wcs-jll....* gnu/packages/julia-jll.scm (julia-wcs-jll): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Sharlatan Hellseher
2023-02-15gnu: Add julia-erfa-jll....* gnu/packages/julia-jll.scm (julia-erfa-jll): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Sharlatan Hellseher
2023-02-08gnu: Add julia-cfitsio-jll....* gnu/packages/julia-jll.scm (julia-cfitsio-jll): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> Sharlatan Hellseher
2022-12-12gnu: ffmpeg: Promote version 5 to the default....* gnu/packages/video.scm (ffmpeg): Alias to FFMPEG-5. (mlt-6)[inpust]: Replace "ffmpeg" with FFMPEG-4. (transcode, libquicktime, ffmpegthumbnailer, mplayer, obs, simplescreenrecorder, handbrake, ffms2, libopenshot, wlstream)[inputs]: Change from FFMPEG to FFMPEG-4. * gnu/packages/arcan.scm (arcan)[inputs]: Likewise. * gnu/packages/astronomy.scm (stackistry, libskry)[inputs]: Likewise. * gnu/packages/audio.scm (aubio, bs1770gain)[inputs]: Likewise. * gnu/packages/education.scm (openboard)[inputs]: Likewise. * gnu/packages/emulators.scm (dolphin-emu, retroarch, pcsxr, ppsspp)[inputs]: Likewise. * gnu/packages/game-development.scm (warsow-qfusion)[inputs]: Likewise. * gnu/packages/games.scm (oshu, hedgewars)[inputs]: Likewise. * gnu/packages/gnunet.scm (libextractor)[inputs]: Likewise. * gnu/packages/graphics.scm (openscenegraph)[inputs]: Likewise. * gnu/packages/image-processing.scm (opencv, paraview-5.9)[inputs]: Likewise. * gnu/packages/julia-jll.scm (julia-ffmpeg-jll)[inputs]: Likewise. * gnu/packages/kde-multimedia.scm (kid3)[inputs]: Likewise. * gnu/packages/kodi.scm (kodi)[inputs]: Likewise. * gnu/packages/linphone.scm (mediastreamer2)[inputs]: Likewise. * gnu/packages/linux.scm (pipewire)[inputs]: Likewise. (pipewire-0.3)[inputs]: Replace "ffmpeg" with FFMPEG. * gnu/packages/mp3.scm (chromaprint)[inputs]: Change from FFMPEG to FFMPEG-4. * gnu/packages/music.scm (musikcube)[inputs]: Likewise. * gnu/packages/rdesktop.scm (freerdp)[inputs]: Likewise. * gnu/packages/qt.scm (qtwebengine-5)[inputs]: Likewise. Marius Bakke