Commit 9eea4bf
committed
Null pointer risks in audisp‑filter config execution
he code calls open(config.config_file, ...) and execve(config.binary, ...) without checking if these pointers are NULL. If configuration is missing or partially parsed, this can segfault. Add validation and fail with a clear error message before these calls.1 parent ce9a715 commit 9eea4bf
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
336 | 341 | | |
337 | 342 | | |
338 | 343 | | |
| |||
502 | 507 | | |
503 | 508 | | |
504 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
505 | 518 | | |
506 | | - | |
| 519 | + | |
| 520 | + | |
507 | 521 | | |
508 | 522 | | |
509 | 523 | | |
| |||
0 commit comments