[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN |
Date: |
Wed, 2 Nov 2022 11:53:58 -0400 (EDT) |
Update of bug #63303 (project octave):
Release: dev => 7.2.0
Operating System: GNU/Linux => Any
_______________________________________________________
Follow-up Comment #2:
Thanks for the report.
It looks like `dim_vector::redim` is used discarding the result.
Does the following change fix it for you?
diff -r 980059c3b129 liboctave/numeric/bsxfun-defs.cc
--- a/liboctave/numeric/bsxfun-defs.cc Wed Oct 26 20:06:47 2022 +0200
+++ b/liboctave/numeric/bsxfun-defs.cc Wed Nov 02 16:51:21 2022 +0100
@@ -146,7 +146,7 @@
dim_vector dvr = r.dims ();
dim_vector dvx = x.dims ();
octave_idx_type nd = r.ndims ();
- dvx.redim (nd);
+ dvx = dvx.redim (nd);
const X *xvec = x.data ();
R *rvec = r.fortran_vec ();
It's probably too late for Octave 7.3. But it'd probably be worth to fix on
stable anyway.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63303>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN, Dmitri A. Sergatskov, 2022/11/01
- [Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN, Dmitri A. Sergatskov, 2022/11/01
- [Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN,
Markus Mützel <=
- [Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN, John W. Eaton, 2022/11/02
- [Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN, Dmitri A. Sergatskov, 2022/11/02
- [Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN, Dmitri A. Sergatskov, 2022/11/02
- [Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN, Markus Mützel, 2022/11/02
- [Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN, Markus Mützel, 2022/11/02
- [Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN, Dmitri A. Sergatskov, 2022/11/02
- [Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN, Markus Mützel, 2022/11/02
- [Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN, Dmitri A. Sergatskov, 2022/11/02
- [Octave-bug-tracker] [bug #63303] test bsxfun.cc-tst coredumps with ASAN, Markus Mützel, 2022/11/03