Re: Found by Coverty in LibreOffice

2014-11-10 Thread Meta via Digitalmars-d
You might find this interesting: http://forum.dlang.org/post/mailman.43.1385384503.3242.digitalmar...@puremagic.com

Re: Found by Coverty in LibreOffice

2014-11-10 Thread bearophile via Digitalmars-d
Rikki Cattermole: Cases like this remind me that division operator shouldn't accept a divisor of generic integer/floating/multi-precision type, but a type that lacks a zero: ... Interesting. Code like this could be rather interesting. In an old language like Ada you have to use explicitly a

Re: Found by Coverty in LibreOffice

2014-11-10 Thread John Colvin via Digitalmars-d
On Monday, 10 November 2014 at 10:23:09 UTC, Rikki Cattermole wrote: On 10/11/2014 11:04 p.m., bearophile wrote: Some of the bugs that the static analysis tool Coverty has found in the C++ code of LibreOffice: http://cgit.freedesktop.org/libreoffice/core/log/?qt=grep&q=coverity Cases like th

Re: Found by Coverty in LibreOffice

2014-11-10 Thread Rikki Cattermole via Digitalmars-d
On 10/11/2014 11:23 p.m., Rikki Cattermole wrote: On 10/11/2014 11:04 p.m., bearophile wrote: Some of the bugs that the static analysis tool Coverty has found in the C++ code of LibreOffice: http://cgit.freedesktop.org/libreoffice/core/log/?qt=grep&q=coverity Cases like this remind me that di

Re: Found by Coverty in LibreOffice

2014-11-10 Thread Rikki Cattermole via Digitalmars-d
On 10/11/2014 11:04 p.m., bearophile wrote: Some of the bugs that the static analysis tool Coverty has found in the C++ code of LibreOffice: http://cgit.freedesktop.org/libreoffice/core/log/?qt=grep&q=coverity Cases like this remind me that division operator shouldn't accept a divisor of gener

Found by Coverty in LibreOffice

2014-11-10 Thread bearophile via Digitalmars-d
Some of the bugs that the static analysis tool Coverty has found in the C++ code of LibreOffice: http://cgit.freedesktop.org/libreoffice/core/log/?qt=grep&q=coverity Cases like this remind me that division operator shouldn't accept a divisor of generic integer/floating/multi-precision type, b