]> granicus.if.org Git - mutt/commit
Rewrite padding logic for mutt_FormatString()
authorRocco Rutte <pdmef@gmx.net>
Thu, 6 Sep 2007 18:13:46 +0000 (20:13 +0200)
committerRocco Rutte <pdmef@gmx.net>
Thu, 6 Sep 2007 18:13:46 +0000 (20:13 +0200)
commit1809e659016e939a4856227c0481956b3015e74e
treef21c7748a1da21622f695a1672a447d26f36724a
parentdad8b5dd67adf66c11a19f11767dae0dc67d01fd
Rewrite padding logic for mutt_FormatString()

Do so by checking columns and bytes individually to make sure we really
don't write past the end of allocated buffers. This patch fixes all my
crashes I saw with files attached to/with the settings for #2882 and #2900.
muttlib.c