* Re: [9front] imap4d broke
[not found] <B8FBE9C94CB8850B0982004B169A05A4@ewsd.inri.net>
@ 2020-05-27 16:54 ` cinap_lenrek
0 siblings, 0 replies; only message in thread
From: cinap_lenrek @ 2020-05-27 16:54 UTC (permalink / raw)
To: 9front
looks like a bug in the imap4d's Dfmt(), trying to format a invalid %s.
the only %s is from mon[tm->mon] as far as i can see.
/sys/src/cmd/upas/imap4d/print.c:^Dfmt
seprint(p, e, fmt,
tm->mday, mon[tm->mon], tm->year + 1900, tm->hour, tm->min, tm->sec,
sgn, off);
so we'd need to take a look at the tm structure here and see if tm->mon
is out of bounds or tm itself is invalid. it comes from date2tm()'s
first argument, which should be on the stack.
can you provide a snap?
--
cinap
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-27 16:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <B8FBE9C94CB8850B0982004B169A05A4@ewsd.inri.net>
2020-05-27 16:54 ` [9front] imap4d broke cinap_lenrek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).