]> git.eshelyaron.com Git - emacs.git/commit
Fix segfault in profiler-cpu-log and profiler-memory-log (bug#78763)
authorZach Shaftel <zach@shaf.tel>
Wed, 11 Jun 2025 19:37:31 +0000 (15:37 -0400)
committerEshel Yaron <me@eshelyaron.com>
Wed, 18 Jun 2025 08:13:41 +0000 (10:13 +0200)
commita757f11106b5917a245f61c8732615bc89f4c7cd
treea8e7e53e6d4769640be38e9e086b475b1b350d77
parentb7d31416d0651a8878f8dace94dec04f1da07a32
Fix segfault in profiler-cpu-log and profiler-memory-log (bug#78763)

* src/profiler.c (export_log): Check if a log has been allocated first,
and return nil if it hasn't.
(Fprofiler_cpu_log, Fprofiler_memory_log): Doc fix.
* test/src/profiler-tests.el (profiler-tests-cpu-profiler)
(profiler-tests-memory-profiler): New tests.

(cherry picked from commit 009cdc8ae09ef060c030feac06578a4ba37cd8c5)
src/profiler.c
test/src/profiler-tests.el [new file with mode: 0644]