Commit 0304e50
committed
ab: resolve out-of-bounds access in dntomid
Restore the check from exch/nsp/ab_tree.cpp that dn actually has
rcpts_prefix before doing +8.
=================================================================
==2561300==ERROR: AddressSanitizer: heap-buffer-overflow on...
READ of size 1 at 0x6030001bc0fe thread T26
f0 __interceptor_strlen
f1 decode_hex_int(char const*) lib/util.cpp:1083
f2 gromox::ab_tree::ab_base::resolve(char const*) const lib/ab_tree.cpp:632
f3 nsp_interface_dntomid exch/nsp/nsp_interface.cpp:1410
Fixes: gromox-2.40-22-gd4f1761ba1 parent edffee6 commit 0304e50
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
| 622 | + | |
622 | 623 | | |
623 | | - | |
| 624 | + | |
| 625 | + | |
624 | 626 | | |
625 | 627 | | |
626 | 628 | | |
627 | 629 | | |
628 | | - | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
629 | 634 | | |
630 | 635 | | |
631 | 636 | | |
| |||
0 commit comments