-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
libparanoia reads incorrect track with full paranoia, correct track with -Z and -Y #5
Comments
Thanks for the report. Robert Kausch is looking at it and he's the best person to be doing so. |
I ran a bisect on the Xiph.org cdparanoia repository, ripping track 5 of the Roberts album, and found that this particular bug was introduced with the following revision:
|
Only just now have I had the time to look at this. In a branch I've applied both patches as branches pending Robert's decision as to which to go with. It would be good to get in place a test for this. This is in neither patch, but I do see some references to it in the cd-paranoia bug report. Do you think you could work up a test for this? Thanks. |
The smallest offset patch is is failing: https://circleci.com/gh/rocky/libcdio-paranoia/15 The longest match patch however passes CI. Note that both patches could not be applied without modification. They were probably made of the cdparanoia source, not the libcdio-paranoia source. |
Hi, original author of the patches here. The failing test was because of a small error when applying the patch. I fixed this in #7. As far as I know, there is no test yet that exposes this bug. I'll try and work something up. |
* Move declarations in patch to beginning of the block to support to support C language dialects that don't support mixed declaration * Bump copyright date Also, see issue #5 (#5) and https://savannah.gnu.org/bugs/index.php?49831
@a10footsquirrel many thanks for the change and thanks in advance for working up a test. |
Hi all!
I apologize for not taking a closer look at this earlier. I did not have
time to set up a test environment to reproduce this, but took the time
today after your mails.
I prefer the smallest offset patch. However, I think there are some
minor issues with it:
1. I think a match might be found at offset -1. In this case, -1 should
not be used to signal no match found; it would then go undetected. A
better signal value might be LONG_MAX.
2. Before calling the callback with PARANOIA_CB_FIXUP_EDGE, it should
check for min_offset instead of offset (the result will be the same,
but it would be easier to read).
BR,
Robert
…----
Robert Kausch
robert.kausch@freac.org
Am 05.02.2017 um 04:19 schrieb R. Bernstein:
Just now have I had a time to look at this. In a branch I've applied
both patches as branches pending Robert's decision as to which to go with.
It would be good to get in place a test for this. This is in neither
patch, but I do see some references to it in the cd-paranoia bug report.
Do you think you could work up a test for this? Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHb36TGGswvL0bvqY9Gg0E1H72MvRUsUks5rZT-sgaJpZM4LLK1e>.
|
Created another pull request for the changes suggested by @enzo1982 (#8). Still working on the test case, it's a bit harder than expected because the bug really depends on the matching runs starting and ending around specific byte locations. (And I can't work on it that much because of personal life stuff having a higher priority.) |
Hi, sorry that it took a while, but I created a pull request with a test case that fails on master and succeeds on both branches that fix the bug. |
I think so, but I usually let the reporter of an issue verify and close. But yes, thanks are due to @a10footsquirrel for fixing this many-years-old bug. (A pity it isn't yet cd paranoia from which this derived, but maybe now this is here that might aid adding it there.) |
Thanks, it was my pleasure. Any chance for an official release for this bug fix? I think the whipper (and other projects) will appreciate an updated version in the official repositories of most distributions as soon as possible. |
Don't know when I'll have time, but I'll try to make a new release when I'm able. |
Pushed libcdio-paranoia-10.2+0.94+1.tar.gz to ftp.gnu.org and tagged release-10.2+0.94+1 I am not sure this change will get reflected in whipper since it uses the stock cdparanoia |
@rocky Thanks for the release, we will update whipper to libcdio-paranoia soon whipper-team/whipper#87. |
This is a duplicate of a bug report I made an savannah. I don't know where the preferable place to report bugs for this project is, and wanted to get as wide coverage as possible.
https://savannah.gnu.org/bugs/index.php?49831
The text was updated successfully, but these errors were encountered: