recent coverity and rand

Kohei Yoshida kohei.yoshida at collabora.com
Tue Oct 7 04:57:00 PDT 2014


On Tue, 2014-10-07 at 10:18 +0300, Tor Lillqvist wrote:


> The problem was that it called
> comphelper::rng::uniform_real_distribution() with two equal arguments,
> which is invalid use of that API, and causes the current
> implementation to get stuck in a loop in the boost code. (I didn't
> bother checking whether it is possible that the loop eventually will
> exit.) Fixed with 4bb67e666b2ca36a5caa5c3f22d0f1e802db527e and
> 1b226b02471f2fab5e5e6f79b6593636274d2320 .

Excellent.  Thanks for the analysis and fix.

Kohei





More information about the LibreOffice mailing list