• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OSGeo / gdal / 20303526321
71%
master: 72%

Build:
Build:
LAST BUILD BRANCH: fix_13610
DEFAULT BRANCH: master
Ran 17 Dec 2025 02:50PM UTC
Jobs 1
Files 2010
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Dec 2025 12:55PM UTC coverage: 71.354% (-0.01%) from 71.365%
20303526321

push

github

rouault
BMP: fix RLE4 encoded mode

There was a subtle bug in the RLE4 decoder for encoded mode alternating
value runs. In the first pixel value of the alternating run depended on
whether the length of the run is odd or even. So `05 12` was decoded to
`1 2 1 2 1` (correct) and `06 12` was (incorrectly) decoded to `2 1 2 1 2 1`.
This change almost matches the decoding of absolute mode a few lines
below.

This bug was found and the fix verified by comparing a GeoTIFF created
by gdal_translate directly from a RLE4 compressed BMP with a
GeoTIFF created by gdal_translate from a PNG converted with ImageMagick
from the RLE4 BMP file.

A test file in RLE4 format has been added generated from 4bit_pal.bmp.
This test verifies the fix in this commit.

4 of 4 new or added lines in 1 file covered. (100.0%)

180 existing lines in 50 files now uncovered.

591784 of 829368 relevant lines covered (71.35%)

296348.68 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
53.53
0.08% frmts/gtiff/libtiff/tif_dir.c
1
63.08
-0.77% frmts/gtiff/libtiff/tif_tile.c
1
30.77
-1.28% frmts/gtiff/libtiff/tif_vsi.c
1
92.33
-0.04% frmts/gti/gdaltileindexdataset.cpp
1
82.72
-0.04% frmts/jpeg/jpgdataset.cpp
1
78.19
-0.07% frmts/jpegxl/jpegxl.cpp
1
93.12
-0.06% frmts/mem/memdataset.cpp
1
92.21
-0.1% frmts/zarr/zarr_v2_array.cpp
1
85.31
-0.13% frmts/zarr/zarr_v3_array.cpp
1
93.25
0.61% gcore/gdalarraybandblockcache.cpp
1
94.0
-0.14% gcore/gdalpamdataset.cpp
1
88.46
-0.15% gcore/gdalpamrasterband.cpp
1
94.32
-0.32% gcore/gdalthreadsafedataset.cpp
1
76.34
-0.07% ogr/ogrct.cpp
1
89.87
-0.09% port/cpl_vsil.cpp
1
87.45
-0.43% third_party/LercLib/Lerc2.cpp
2
92.24
-0.91% alg/delaunay.c
2
91.72
0.06% alg/gdalgrid.cpp
2
34.59
-1.5% frmts/null/nulldataset.cpp
2
86.03
-0.06% gcore/gdaldataset.cpp
2
76.86
-0.04% gcore/gdal_misc.cpp
2
87.85
-0.03% gcore/overview.cpp
2
87.83
-0.24% ogr/ograpispy.cpp
2
69.97
-0.34% ogr/ogrsf_frmts/geojson/libjson/json_tokener.c
2
90.96
-0.6% port/cplstringlist.cpp
2
40.25
-0.21% port/cpl_virtualmem.cpp
2
63.57
-1.55% port/cpl_vsi_virtual.h
2
88.38
-0.7% third_party/LercLib/BitStuffer2.cpp
3
91.24
-0.06% frmts/gtiff/gtiffdataset_read.cpp
3
54.56
0.19% frmts/gtiff/libtiff/tif_dirwrite.c
3
66.02
-0.45% frmts/gtiff/libtiff/tif_read.c
3
72.52
-2.29% frmts/raw/nsidcbindataset.cpp
3
78.95
-0.61% port/cpl_multiproc.cpp
3
89.92
0.0% port/cpl_string.cpp
3
86.12
-0.66% third_party/libertiff/libertiff.hpp
4
82.41
-0.08% gcore/gdalrasterband.cpp
5
87.71
-1.06% alg/viewshed/viewshed_executor.cpp
5
55.94
-1.17% frmts/gtiff/libtiff/tif_write.c
5
63.16
-8.77% ogr/ogrsf_frmts/arrow_common/ograrrowrandomaccessfile.h
5
70.51
-0.52% port/cpl_compressor.cpp
5
70.24
-1.09% port/cpl_error.cpp
5
68.68
-1.89% port/cpl_vsisimple.cpp
6
62.6
-0.53% frmts/gtiff/libtiff/tif_open.c
6
87.86
-0.75% port/cpl_minixml.cpp
6
49.16
-3.35% third_party/LercLib/Lerc.cpp
7
58.72
-6.42% ogr/ogrsf_frmts/arrow_common/vsiarrowfilesystem.hpp
7
71.12
-0.48% third_party/LercLib/Lerc2.h
8
40.14
-0.91% frmts/gtiff/libtiff/tif_dirinfo.c
10
91.61
-0.29% gcore/rasterio.cpp
35
33.46
-0.65% frmts/gtiff/libtiff/tif_dirread.c
Jobs
ID Job ID Ran Files Coverage
1 20303526321.1 17 Dec 2025 02:50PM UTC 2010
71.35
GitHub Action Run
Source Files on build 20303526321
  • Tree
  • List 2010
  • Changed 57
  • Source Changed 1
  • Coverage Changed 57
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20303526321
  • 18151a3f on github
  • Prev Build on release/3.12 (#20241274822)
  • Next Build on release/3.12 (#20346850473)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc