bug-make
[Top][All Lists]
Advanced

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

Re: Crash in 'find_and_set_default_shell()'


From: Paul Smith
Subject: Re: Crash in 'find_and_set_default_shell()'
Date: Sat, 18 Jun 2022 17:05:44 -0400
User-agent: Evolution 3.44.1 (by Flathub.org))

On Wed, 2022-05-11 at 08:00 +0200, Gisle Vanem wrote:
> The crash and wild call-stack seems to be caused
> by an overflow to 'sprintf(sh_path, ..)'. But replacing
> with 'snprintf()' works w/o any crash:

I applied changes based on this: some didn't need sprintf() at all; the
rest I used snprintf().

I do have a memory that some versions of Visual Studio, up until
relatively recently, have non-standard implementations of snprintf()
but hopefully it's standard enough to manage this.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]