[PATCH v2] msvcirt: Be more obvious in out-of-memory situations.

Chip Davis cdavis at codeweavers.com
Fri Sep 4 12:03:43 CDT 2020


Ah, OK. Thanks.

September 4, 2020 11:55 AM, "Gijs Vermeulen" <gijsvrm at gmail.com (mailto:gijsvrm at gmail.com?to=%22Gijs%20Vermeulen%22%20<gijsvrm at gmail.com>)> wrote:
Hi Chip,See https://www.winehq.org/pipermail/wine-devel/2020-September/172895.html (https://www.winehq.org/pipermail/wine-devel/2020-September/172895.html)Kind regards,Gijs 
On Fri, Sep 4, 2020, 16:44 Chip Davis <cdavis at codeweavers.com (mailto:cdavis at codeweavers.com)> wrote: September 4, 2020 4:44 AM, "Arkadiusz Hiler" <ahiler at codeweavers.com (mailto:ahiler at codeweavers.com)> wrote:

> diff --git a/dlls/msvcirt/msvcirt.c b/dlls/msvcirt/msvcirt.c
> index 7e1d9977b78..959322bdc86 100644
> --- a/dlls/msvcirt/msvcirt.c
> +++ b/dlls/msvcirt/msvcirt.c
> @@ -3012,11 +3012,15 @@ ostream* __thiscall ostrstream_buffer_ctor(ostream *this, char *buffer, int leng
>
> TRACE("(%p %p %d %d %d)n", this, buffer, length, mode, virt_init);
>
> - if (ssb) {
> - strstreambuf_buffer_ctor(ssb, buffer, length, buffer);
> - if (mode & (OPENMODE_app|OPENMODE_ate))
> - ssb->base.pptr = buffer + strlen(buffer);
> + if (!ssb) {
> + FIXME("out of memoryn");

Shouldn't this be an ERR? It doesn't seem like this is the kind of problem we can fix. Ditto, the other instances of this you added.
Chip
Chip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200904/02fe4aa2/attachment.htm>


More information about the wine-devel mailing list