Bug#472269: libc6: res_query makes assumptions about the alignment of the answer argument

2022-03-22 Thread John David Anglin
Package: libc6 Followup-For: Bug #472269 Dear Maintainer, I believe this bug is fixed upstream by the following commit: commit 05dec22d7be722987ff07aebf9690f6078b3c4e9 (HEAD -> master, origin/master, origin/HEAD) Author: John David Anglin Date: Tue Mar 22 17:35:54 2022 + resolv: Fix

Bug#472269: libc6: res_query makes assumptions about the alignment of the answer argument

2008-03-22 Thread Sjoerd Simons
Package: libc6 Version: 2.7-9 Severity: normal Hi, libc6 assumes the answer argument to the res_query function which is of type unsigned char * is aligned in such a way it can be cast to HEADER. Thus following apparently correct code causes a SIGBUS on sparc: #include stdio.h