| 350 | // auxv |
| 351 | for (auto aux : auxv) |
| 352 | stack_push_buf(BAN::ConstByteSpan::from(aux)); |
| 353 | |
| 354 | // information |
| 355 | for (size_t i = 0; i < argv.size(); i++) |
| 356 | { |
| 357 | stack_copy_buf(BAN::ConstByteSpan::from(vaddr), argv_vaddr + i * sizeof(uintptr_t)); |
| 358 | stack_push_str(argv[i]); |
| 359 | } |
| 360 | for (size_t i = 0; i < envp.size(); i++) |
| 361 | { |
| 362 | stack_copy_buf(BAN::ConstByteSpan::from(vaddr), envp_vaddr + i * sizeof(uintptr_t)); |
| 363 | stack_push_str(envp[i]); |
| 364 | } |
| 365 | |
| 366 | return stack_region.vaddr() + stack_region.size() - needed_size; |
| 367 | } |
| 368 |
nothing calls this directly
no outgoing calls
no test coverage detected