mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] possible buffer overflow in crypt() -- musl-1.2.2
@ 2021-11-04 14:53 Terefang Verigorn
  2021-11-04 15:13 ` [musl] " Terefang Verigorn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Terefang Verigorn @ 2021-11-04 14:53 UTC (permalink / raw)
  To: musl

hello

crypt.h declares
---
struct crypt_data {
   int initialized;
   char __buf[256];
};
---

but crypt.c uses
---
static char buf[128];
return __crypt_r(key, salt, (struct crypt_data *)buf);
---

the buf[128] should be rather buf[sizeof(crypt_data)]

--
Terefang

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-04 16:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04 14:53 [musl] possible buffer overflow in crypt() -- musl-1.2.2 Terefang Verigorn
2021-11-04 15:13 ` [musl] " Terefang Verigorn
2021-11-04 16:13 ` [musl] " Rich Felker
2021-11-04 16:32 ` Charlotte Delenk

Code repositories for project(s) associated with this inbox:

	https://git.vuxu.org/mirror/musl/

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).