Commit 46baac1
committed
fix: Fix five bugs - critical stability and moderate security issues
Fixed three critical division by zero bugs and two moderate bugs:
1. Wall model convergence - zero-check before division (wall_model.cpp:312)
2. Wall model Gamma - epsilon check for exp(1/Gamma) (wall_model.cpp:398)
3. Radiation emissivity - clamp to [0,1] range (CRadP1Solver.cpp:286,360,434)
4. Restart metadata - correct ITER= offset 9→5 (CSolver.cpp:3386)
5. Filename buffer - replace strcpy with strncpy (CPhysicalGeometry.cpp:8255,8569)
Improves solver stability, correctness, and security.
Signed-off-by: shbhmexe <[email protected]>1 parent dac92cc commit 46baac1
File tree
4 files changed
+34
-6
lines changed- Common/src
- geometry
- SU2_CFD/src/solvers
4 files changed
+34
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8252 | 8252 | | |
8253 | 8253 | | |
8254 | 8254 | | |
8255 | | - | |
| 8255 | + | |
| 8256 | + | |
8256 | 8257 | | |
8257 | 8258 | | |
8258 | 8259 | | |
| |||
8565 | 8566 | | |
8566 | 8567 | | |
8567 | 8568 | | |
8568 | | - | |
| 8569 | + | |
| 8570 | + | |
8569 | 8571 | | |
8570 | 8572 | | |
8571 | 8573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
310 | 311 | | |
311 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
312 | 316 | | |
313 | 317 | | |
314 | 318 | | |
| |||
390 | 394 | | |
391 | 395 | | |
392 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
393 | 408 | | |
394 | 409 | | |
395 | | - | |
| 410 | + | |
396 | 411 | | |
397 | 412 | | |
398 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
285 | 289 | | |
286 | 290 | | |
287 | 291 | | |
| |||
356 | 360 | | |
357 | 361 | | |
358 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
359 | 367 | | |
360 | 368 | | |
361 | 369 | | |
| |||
430 | 438 | | |
431 | 439 | | |
432 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
433 | 445 | | |
434 | 446 | | |
435 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3383 | 3383 | | |
3384 | 3384 | | |
3385 | 3385 | | |
3386 | | - | |
3387 | | - | |
| 3386 | + | |
3388 | 3387 | | |
3389 | 3388 | | |
3390 | 3389 | | |
| |||
0 commit comments