-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sane-backends' canon driver segfault #239726
Comments
That sounds like an upstream issue and I found no comparable issue in the issue tracker. Would you mind reporting it upstream? |
I don't have a gitlab account and would find creating one just for such a tiny issue a bit cumbersome, so I would rather not deal with that myself... for now, I'll patch it locally with: (In accordance with https://gitlab.com/sane-project/backends/-/blob/1.2.1/backend/canon-sane.c#L676, urgh I hate hardcoded string values) diff --git a/backend/canon.c b/backend/canon.c
index d17cd01a4..6a0b8aa07 100644
--- a/backend/canon.c
+++ b/backend/canon.c
@@ -166,6 +166,7 @@ static const SANE_String_Const mode_list_fb1200[] = {
static const SANE_String_Const tpu_dc_mode_list[] = {
SANE_I18N("No transparency correction"),
SANE_I18N("Correction according to film type"),
+ SANE_I18N("Correction according to transparency ratio (unhandled)"),
SANE_I18N("Correction according to transparency ratio"),
0
}; |
Note that you can use your github account to login to gitlab.com. Please also consider that only people with access to the hardware can reproduce, so it would be nonsensical for me to report the issue on your behalf. |
ok, I'll send a mail. |
Describe the bug
simple-scan segfaults while trying to scan using a canon scanner at
https://gitlab.com/sane-project/backends/-/blob/1.2.1/backend/canon.c#L1764
because it tries to copy a null pointer (
s->hw->tpu.ControlMode = 3
).Steps To Reproduce
Steps to reproduce the behavior:
idk...
Expected behavior
such segfaults shouldn't happen. scanning should work.
Additional context
simple-scan backtrace, with enabled debug symbols for glibc, sane-backends, simple-scan (gathered using
coredumpctl
):Notify maintainers
@symphorien
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.The text was updated successfully, but these errors were encountered: