1 Jul 2006 17:01
Re: CVS: herc.66h.42h.de: src
Thorsten Glaser dixit: >Modified files: > usr.bin/elf2aout: elf2aout.c > >Log message: >don't make this crash converting symbol tables; this also replaces the one strcpy(3) with strlcpy(3) which was a requirement for fixing these segfaults >rather, use realloc(3) correctly to kludge around. >also sprinkle another endian conversion and note >that this code is not 64-bit safe. hto[bl]e32 just isn't hto[bl]el on LP64 arches this requires even greater changes of the code plus an evaluation whether the target is elf32 or elf64 in addition I don't think this code handles an elf64 file *at all* - still would be useful to convert sparc(32) kernels on an amd64 box //mirabile -- -- I believe no one can invent an algorithm. One just happens to hit upon it when God enlightens him. Or only God invents algorithms, we merely copy them. If you don't believe in God, just consider God as Nature if you won't deny existence. -- Coywolf Qi Hunt(Continue reading)
RSS Feed