kopia lustrzana https://gitlab.com/sane-project/backends
Merge branch 'glibcxx-assertions-abort' into 'master'
genesys: Fix #156 - [Fedora] Abort due out-of-bound access Closes #156 See merge request sane-project/backends!224merge-requests/227/merge
commit
fe30fbe893
|
@ -805,6 +805,11 @@ void sanei_genesys_create_default_gamma_table(Genesys_Device* dev,
|
|||
size = 4096;
|
||||
}
|
||||
max = size - 1;
|
||||
} else if (dev->model->asic_type == AsicType::GL124 ||
|
||||
dev->model->asic_type == AsicType::GL846 ||
|
||||
dev->model->asic_type == AsicType::GL847) {
|
||||
size = 257;
|
||||
max = 65535;
|
||||
} else {
|
||||
size = 256;
|
||||
max = 65535;
|
||||
|
|
Ładowanie…
Reference in New Issue