Commit Graph

5904 Commits

Author SHA1 Message Date
zdenop
1a181a3150
Merge pull request #1722 from stweil/cov
Fix several issues reported by Coverity Scan
2018-07-01 21:03:42 +02:00
Stefan Weil
abbd78a053 Fix CID 1340271, 1340272, 1340273, 1340274 (Use after free)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 20:18:39 +02:00
Stefan Weil
52b44c5ebf Fix CID 1164530 (Logically dead code)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 20:01:56 +02:00
Stefan Weil
57970443b4 Fix CID 1393661 (Arguments in wrong order)
It did not cause a problem as both arguments were 0.

Update also the function prototype of HistogramRectOCL to
accept a void pointer which allows removing a type cast.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:40:44 +02:00
Stefan Weil
09da044a77 Fix CID 1164553 (Division or modulo by float zero)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:27:01 +02:00
Stefan Weil
1b303e5d37 Fix CID 1393662 Resource leak
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:27:01 +02:00
Stefan Weil
d3c4642d8f Fix CID 1393662 (Resource leak) 2018-07-01 19:27:01 +02:00
Stefan Weil
98758fb300 opencl: Use std::vector and clean code
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:27:01 +02:00
Stefan Weil
53795a88b5 Fix CID 1158180 Argument cannot be negative
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 19:18:32 +02:00
Egor Pugin
13ec8a7444
Merge pull request #1720 from stweil/clang-format
Update rules for clang-format
2018-07-01 12:01:14 +03:00
Egor Pugin
a67dc13207
Merge pull request #1721 from stweil/pdfrenderer
pdfrenderer: Fix ClipBaseline and optimize code
2018-07-01 12:01:00 +03:00
Stefan Weil
6801085376 pdfrenderer: Fix ClipBaseline and optimize code
The division was made with integers, giving a wrong result.

* Avoid division and use pure integer operations.
* Add missing "static" attribute.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 08:33:56 +02:00
Stefan Weil
1011e001d8 Update rules for clang-format
Add indentation of preprocessor directives.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 08:11:22 +02:00
zdenop
a414443fc4
Merge pull request #1719 from stweil/cov-baseapi
Fix issues reported by Coverity Scan for baseapi
2018-07-01 08:10:54 +02:00
Stefan Weil
e8e94d372c Fix CID 1340287 (Unchecked return value)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 07:54:11 +02:00
Stefan Weil
a49b8f1d21 Fix CID 1297960 (Dereference after null check)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 07:54:11 +02:00
Stefan Weil
86eb4dfcdc Fix CID 1164646 (Uninitialized pointer field)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-07-01 07:54:11 +02:00
zdenop
b970fae201
Merge pull request #1559 from stweil/autoconf
Remove autoconf-archive dependency
2018-07-01 07:45:40 +02:00
Stefan Weil
6b250b5812 Remove autoconf-archive dependency
It creates much confusion and causes many issue reports,
so let us drop this dependency.

The two new files in the m4/ directory are current copies from GitHub
(https://github.com/autoconf-archive/autoconf-archive/).

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 22:23:22 +02:00
zdenop
5b14121449
Merge pull request #1718 from stweil/opencl
Format OpenCL code
2018-06-30 20:14:04 +02:00
Stefan Weil
de072cc01e Format OpenCL code
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 18:32:53 +02:00
Egor Pugin
5bb0661858
Merge pull request #1716 from stweil/cov
Fix some issues in cjkpitch.cpp and in OpenCL code (reported by Coverity Scan)
2018-06-30 17:43:39 +03:00
Egor Pugin
ad5df5bc5b
Merge pull request #1717 from stweil/cov-java
Fix CID 1386106 (Explicit null dereferenced)
2018-06-30 17:43:00 +03:00
Stefan Weil
368fa189d1 Fix CID 1386106 (Explicit null dereferenced)
Handle also the case when the user closes the dialog
without selecting an answer.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 16:29:49 +02:00
Stefan Weil
740a821c76 Fix CID 1393673 (Ignoring number of bytes read)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:25:09 +02:00
Stefan Weil
075dc984e9 Fix CID 1393671 (Uninitialized scalar variable)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:10:25 +02:00
Stefan Weil
8f33d10bfb Fix CID 1393670 (Resource leak)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:10:16 +02:00
Stefan Weil
12a601fffa Fix CID 1393669 (Resource leak)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:21 +02:00
Stefan Weil
1de55c8604 Fix CID 1393668 (Uninitialized scalar variable)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:21 +02:00
Stefan Weil
1e1f35cd5c Fix CID 1393667 (Copy into fixed size buffer)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:21 +02:00
Stefan Weil
85794ca188 Fix CID 1393666 (Big parameter passed by value)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:21 +02:00
Stefan Weil
3d2f73503e Fix CID 1393665 (Uninitialized scalar variable)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:21 +02:00
Stefan Weil
a95917a6a4 Fix CID 1393664 (Uninitialized scalar variable)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:21 +02:00
Stefan Weil
c9737c7f93 Fix CID 1393663 (Big parameter passed by value)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:20 +02:00
Stefan Weil
53596f7837 Fix CID 1393662 (Resource leak)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 15:07:19 +02:00
Stefan Weil
fcff2f2ce2 Fix CID 1242849 (Unused value)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 11:46:19 +02:00
Stefan Weil
eabd10d8f2 Fix CID 1158180 (Argument cannot be negative) and clean code a bit
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 11:41:41 +02:00
Stefan Weil
4cc103cd42 Fix CID 1157757 (Logically dead code)
deviceNameStart cannot be NULL here.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-30 10:36:45 +02:00
Stefan Weil
36c985b715 Fix CID 1164746 (Big parameter passed by value)
Use std::vector instead of GenericVector.

Fix also several signed / unsigned compiler warnings.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-29 22:24:00 +02:00
zdenop
b24b2c2cc2
Merge pull request #1715 from stweil/cov
Fix some issues in Java code (reported by Coverity Scan)
2018-06-29 18:13:55 +02:00
Stefan Weil
244b54bfc9 Fix CID 1386083 (Dereference null return value)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-29 17:50:23 +02:00
Stefan Weil
2a30d77d75 Fix CID 1386104 (Dereference null return value)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-29 17:40:06 +02:00
Stefan Weil
4bebf3a5a3 Fix CID 1386098 (Dubious method used)
PrintStream depends on the default encoding if no encoding is given,
so set UTF-8 encoding explicitly.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-29 17:33:43 +02:00
Stefan Weil
0686cbed87 Fix CID 1386094 (Unread field)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-29 17:31:44 +02:00
zdenop
5fdaa479da
Merge pull request #1711 from ofirkris/patch-1
Update VERSION
2018-06-28 12:22:01 +02:00
ofirkris
93a9a9dc00
Update VERSION 2018-06-28 11:54:44 +03:00
zdenop
6f23ed380a
Merge pull request #1707 from stweil/includes
dotproductsse: Fix include statements
2018-06-25 19:45:06 +02:00
Stefan Weil
20cd6d2328 dotproductsse: Fix include statements
The changes are based on an analysis done with include-what-you-use.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-25 19:15:37 +02:00
Egor Pugin
a9369ffa48
Merge pull request #1705 from stweil/memory
Replace proprietary memory allocators from memry.c, memry.h
2018-06-25 19:15:09 +03:00
Stefan Weil
9bb5a87760 Remove stderr.h and its include statements
MEMORY_OUT is no longer used.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-06-25 16:14:20 +02:00