Commit eee15ee
MGM: geotree: Fix wrong memcpy invocation in FsId2NodeIdxMap
This structure allocates a char array [pStrLen + sizeof(tFastTreeIdx)] at size;
the first pStrLen * size is reserved for the buffer and the rest is storing the
indices
The memcpy invocation however copied sizeof(char*) * pStreLen * pSize previously
which would copy 8 times the intended size leading to hard to debug segfaults
whereas it should be only copying pSize * pStrLen
Fixes: EOS-6506
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@cern.ch>1 parent 159e07b commit eee15ee
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| |||
0 commit comments