Skip to content
Prev 11110 / 12125 Next

[R-pkg-devel] [CRAN-pretest-archived] CRAN Submission NMRphasing 1.0.6

Dear Aixiang,

Welcome to R-package-devel!

? Tue, 17 Dec 2024 09:47:26 +0000
Aixiang Jiang <aijiang at bccrc.ca> ?????:
That's right, you've found a bug in the MassSpecWavelet package. It's
been introduced more than two years ago:

https://code.bioconductor.org/browse/MassSpecWavelet/commit/ea0f727ffc391fa2643f858844836d8297742433

The code finds out the length of the vector and a pointer to the start
of its data:
Later, the code tries to limit the offset into the array...
...and accesses the data at this offset:
Unfortunately, it is an error to access data at i2 equal to xlength.
The correct maximum for i2 must be xlength-1, the last valid element of
x.

Try reporting this to the maintainer at
<https://support.bioconductor.org/> or at
<http://github.com/zeehio/MassSpecWavelet/issues>.