[Debian-astro-commits] [gyoto] 44/221: fix bug in MPI rayTrace (invalid write)

Thibaut Jean-Claude Paumard thibaut at moszumanska.debian.org
Fri May 22 20:52:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

thibaut pushed a commit to branch master
in repository gyoto.

commit 52f654bab80cf092c318b3e1de597153abcd5371
Author: Thibaut Paumard <paumard at users.sourceforge.net>
Date:   Mon Oct 13 17:09:25 2014 +0200

    fix bug in MPI rayTrace (invalid write)
---
 lib/Scenery.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Scenery.C b/lib/Scenery.C
index 084494d..89155c4 100644
--- a/lib/Scenery.C
+++ b/lib/Scenery.C
@@ -359,7 +359,7 @@ void Scenery::rayTrace(size_t imin, size_t imax,
       // First tell the workers to join our task force
       // The corresponding recv is in gyoto-scenery-worker.c
 
-      size_t *ijr = new size_t[working*2];
+      size_t *ijr = new size_t[working*2+2];
 
       while (working) {
 	// receive one result, need to track back where it belongs and

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/gyoto.git



More information about the Debian-astro-commits mailing list