Archive for December, 2004

checksumming Mach-O binaries

Tuesday, December 28th, 2004

Checksumming Mach-O binaries is not easy, since the code changes due to a process called “prebinding”. ctool tries to get arround this by hashing ony certain sections: __text, __cstring, __literal4, __literal8, __mod_init_func, __mod_term_func.

Can we use other sections to infect a file?

Sunday, December 26th, 2004

Saturday, December 25th, 2004

Saturday, December 25th, 2004

Thursday, December 23rd, 2004

Tuesday, December 21st, 2004

Tuesday, December 21st, 2004

Patched my Powerbook

Monday, December 20th, 2004

XEmacs and UTF-8

Monday, December 20th, 2004

Seems my editor was struck by an UTF-8 double encoding bug. Quick and dirty fix:

perl -npe 's/\xc3\x83\xc2/\xc3/g;' -i.bak FILENAME

BigTeX

Sunday, December 19th, 2004
[492] [493] [494] [495] [496] [497] [498]
! TeX capacity exceeded, sorry [save size=5000].
\@tempc #1->\begingroup
                        \edef \x {#1}\expandafter \endgroup \ifx \x \@empty ...
l.19674 

Output written on diss-main.dvi (498 pages, 3049724 bytes).
Transcript written on diss-main.log.
make: *** [diss-main.dvi] Error 1

Edit save_size in /opt/local/share/texmf/web2c/texmf.cnf to make that error go away.

Underfull \hbox (badness 1859) in paragraph at lines 12708--12709
[]| \T1/ptm/m/n/10 A vi-rus with a (po-li-ti-cal) con-s-cience. New York, NY: I
n-ter-net Ar-ti-kel, 2001 []URL:
Runaway argument?
{\protect \bibtfont  {A Taxonomy of Computer Program S
! TeX capacity exceeded, sorry [main memory size=1000001].
\jb@tempa ...t  {A Taxonomy of Computer Program Se
                                                  curity Flaws, with Example...
l.12741   Surveys 26, 3 (Sept., 1994).} \jbdoitem
                                                  \bibAnnoteFile {landwehr93...

Output written on diss-main.dvi (504 pages, 4073044 bytes).
Transcript written on diss-main.log.
make: *** [diss-main.dvi] Error 1

Edit /opt/local/share/texmf/web2c/texmf.cnf to read main_memory = 2000000.

ABD: EveryShipout initializing macros
(/opt/local/share/texmf-local/tex/latex/ucs/ucsencs.def) (./dejbbib.ldf)
(./diss-main.out) (./diss-main.out
Runaway argument?
{Count
! TeX capacity exceeded, sorry [main memory size=1000001].
\@tempc #1->\pdf@addtoks {#1}{Count}

l.548 ...RK [1][-]{section.10.1}{Spam}{chapter.10}

No pages of output.
Transcript written on diss-main.log.
make: *** [diss-main.dvi] Error 1

fmtutil --all

(see the transcript file for additional information)
Output written on diss-main.dvi (613 pages, 6080316 bytes).
Transcript written on diss-main.log.

uff!