This is the mail archive of the
mailing list for the Cygwin project.
Re: [PATCH] setup.exe SEGV on WinXP/Pro
- From: Achim Gratz <Stromeko at nexgo dot de>
- To: cygwin-apps at cygwin dot com
- Date: Fri, 09 Aug 2013 20:22:55 +0200
- Subject: Re: [PATCH] setup.exe SEGV on WinXP/Pro
- References: <877gfw2fqp dot fsf at Rainer dot invalid> <20130809090726 dot GS16868 at calimero dot vinschen dot de>
Corinna Vinschen writes:
>> - return std::string(hexdigest);
> I'm wondering if that was the problem.
I was wondering about this, too â but then the SEGV should have happened
in the calling function. I believe that the vetting of hexdigest
with a zero was the actual point of failure. That really should not
happen, I think, but then I haven't chased it down to the actual
> This expression constructs a
> std:string and then immediately destructs it since the scope is limited
> to the end of the function (which the return statement is all about).
This being C++, the compiler is expected to copy the temporary object to
the return object or (as would be possible here) to construct the
temporary object in the place of the return object, thereby saving the
> Reading the value of this object in the parent function is basically
> luck, isn't it?
If it was just giving out a char* that would be a common mistake to
make, but not much of C++ would work if that was the case when an actual
object is involved.
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Wavetables for the Waldorf Blofeld: