1 |
Markus Duft wrote: |
2 |
> Hey! |
3 |
> |
4 |
> seems i found a problem with chpathtool. i tried to chpath a whole |
5 |
> prefix at once recursively, but some files make chpathtool crash. i |
6 |
> attached one of them, could you have a look at it? i debugged the |
7 |
> problem on my gentoo linux box, but no luck. |
8 |
> |
9 |
|
10 |
trying again, i found something: it's a off-by-on if the file ends with |
11 |
for example '/', which makes memstr yield a partial match to magic... |
12 |
|
13 |
i have a patch for this (attached), that seems to fix it (not sure |
14 |
wether it destroys something else ;)). could you double check, and |
15 |
apply? Thanks! |
16 |
|
17 |
owh... and: chpathtool only works as long as magic and value are the |
18 |
same length. it immediatly (after 10 files or so) crashes if value is |
19 |
less than magic ... |
20 |
|
21 |
Cheers, Markus |
22 |
|
23 |
> the command that segfaults: |
24 |
> |
25 |
> chpathtool README.ctypes xx "/tools/mduft/gentoo-base" |
26 |
> "/tools/mduft/gentoo-itxb" |
27 |
> |
28 |
> Cheers, Markus |
29 |
> |