unaligned access error on alpha/OSF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think I did fix this one...

At list.c/line 242:

sscanf (p, "%lu %127[^\r\n]", &n->creation_time, sbuf);

n->creation_time is declared as time_t (unsigned int <=> 32bit on alpha)
but "%lu" forces sscanf to read a long int (64bit) into n->creation_time
corrupting the newsgroup structure and producing lots of "unaligned access"
errors.

my solution: changed %lu to %u (don't know if it works on other systems)

still receiving lots of:

nntpcached[13346]: nntpcache.c:451:Illegal seek: Memory currupt
nntpcache.c:451:Bad file number: Memory currupt

but things look better.

pac



[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux