stardis

Perform coupled heat transfer calculations
git clone git://git.meso-star.fr/stardis.git
Log | Files | Refs | README | LICENSE

commit 1eb50d1320dcf4f2e7e7892516af286f4764be6e
parent d52036170635640d1bfd89d53b8e32ec7b352b99
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 19 Feb 2024 16:23:26 +0100

Fix invalid memory reading/writing

When calculating a temperature on a limit, Stardis searches for the
surface closest to the probe point. To do this it questions
Stardis-Solver. This call was ironed: a pointer was poorly defined and
referenced an invalid memory address.

Diffstat:
Msrc/stardis-compute-probe-boundary.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/stardis-compute-probe-boundary.c b/src/stardis-compute-probe-boundary.c @@ -213,7 +213,7 @@ find_closest_point closest_pt_args.position[2] = pos[2]; closest_pt_args.radius = INF; closest_pt_args.filter_3d = hit_filter; - closest_pt_args.filter_data = &filter_ctx; + closest_pt_args.filter_data = filter_ctx; ERR(sdis_scene_find_closest_point (stardis->sdis_scn , &closest_pt_args, iprim, uv)); if(*iprim == SDIS_PRIMITIVE_NONE) {