1 |
On 22-09-2009 16:11:19 +0200, Markus Duft wrote: |
2 |
> Markus Duft wrote: |
3 |
> > Hey! |
4 |
> > |
5 |
> > seems i found a problem with chpathtool. i tried to chpath a whole |
6 |
> > prefix at once recursively, but some files make chpathtool crash. i |
7 |
> > attached one of them, could you have a look at it? i debugged the |
8 |
> > problem on my gentoo linux box, but no luck. |
9 |
> > |
10 |
> |
11 |
> trying again, i found something: it's a off-by-on if the file ends with |
12 |
> for example '/', which makes memstr yield a partial match to magic... |
13 |
> |
14 |
> i have a patch for this (attached), that seems to fix it (not sure |
15 |
> wether it destroys something else ;)). could you double check, and |
16 |
> apply? Thanks! |
17 |
> |
18 |
> owh... and: chpathtool only works as long as magic and value are the |
19 |
> same length. it immediatly (after 10 files or so) crashes if value is |
20 |
> less than magic ... |
21 |
|
22 |
Thanks for investigating, I'll look at it later today if time and health |
23 |
allows (I hope). It used to work fine on Darwin for huge-to-small |
24 |
prefix changes. But maybe the memory management just saved my *** |
25 |
there. |
26 |
|
27 |
|
28 |
-- |
29 |
Fabian Groffen |
30 |
Gentoo on a different level |