instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
OpenRCT2__OpenRCT2__24734
OpenRCT2/OpenRCT2
24,734
defect
815f75f02de49165d96161f32240dd012ab019b3
c4fabd5ded360facf5ec92b3afd1c3310c639738
Use ZStandard Compression for PARK and PARKREP Files
When it comes to comparing compression algorithms, there are largely two important metrics: compression (and decompression) speed, and compression ratio. Compared to Zlib, which is the current compression library used by OpenRCT2, most algorithms only improve on it in one of these factors, such as LZ4 being faster with...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dfce0d2512fd..cafa00eaad58 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,7 +129,7 @@ jobs: check-code-formatting: name: Check code formatting runs-on: ubuntu-latest - container: openrct2/openrct2-build:...
9
5
1
[{"id": "G0", "claim": "The custom 64-bit zstdCompressBound duplicates the zstd library's bound function unnecessarily, since nothing should ever reach sizes needing 64 bits.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The compression level 7 passed to ...
null
OpenRCT2__OpenRCT2__24979
OpenRCT2/OpenRCT2
24,979
defect
3e8ea34507754e078ad8776ce8d00f3fd75b7812
f239244b223af6b01c260a78108e83a0d8091aeb
Small refactor of RideRating into namespace
I was investigating something into RideRatings and noticed it could use some namespacing. It is not complete, as I didn't want to touch `MakeRideRating` because it is everywhere, and will follow that up in another PR
diff --git a/src/openrct2-ui/windows/RideList.cpp b/src/openrct2-ui/windows/RideList.cpp index 4de6833473f6..532327252a42 100644 --- a/src/openrct2-ui/windows/RideList.cpp +++ b/src/openrct2-ui/windows/RideList.cpp @@ -1075,23 +1075,28 @@ namespace OpenRCT2::Ui::Windows break; case...
3
3
0
[{"id": "G0", "claim": "The OpenRCT2:: qualifier is unnecessary on RideRating::kUndefined in RideList.cpp, which is already inside namespace OpenRCT2::Ui.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OpenRCT2:: qualifier is unnecessary on ...
null
OpenRCT2__OpenRCT2__25254
OpenRCT2/OpenRCT2
25,254
defect
db5f56f4aabac9d6fc66f31eff8e60de2f9a4ad4
fe5a46babccd23f86e3332f3198f9423bac9e88a
Fix #25201: Maintain ride list sort order, apply natural sorting
This PR keeps the sort consistent no matter the sort direction and keeps it stable. Also fixes the logical compare, this now matches the output of what Notepad++ or VSCode/VS will do. develop: <img width="341" height="242" alt="image" src="https://github.com/user-attachments/assets/dfdd4f62-a348-41c4-9dfc-c7436f04ac4...
diff --git a/src/openrct2-ui/windows/RideList.cpp b/src/openrct2-ui/windows/RideList.cpp index 867eb6506eaf..6133e1fe4ff8 100644 --- a/src/openrct2-ui/windows/RideList.cpp +++ b/src/openrct2-ui/windows/RideList.cpp @@ -983,6 +983,11 @@ namespace OpenRCT2::Ui::Windows void SortList() { + /...
5
4
1
[{"id": "G0", "claim": "The new sort order the pull request introduces behaves strangely for some things and has to be reworked.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new comment should use the British spelling 'Prioritise' instead of '...
null
OpenRCT2__OpenRCT2__4835
OpenRCT2/OpenRCT2
4,835
defect
29a4277709cf15f0836e73a587defd0e95bba6bb
9ea7411770cb7b2a2c357a6a987d1228ace804f4
Add tests
I added basic test set up, since I don't really know how to best wire it all up, I need your input. I used google test, packaged for Arch. It is current release, 1.8.0, Ubuntu has 1.6 in the repos, I'm not sure what would we be missing, but [1.6 is quite dated](https://github.com/google/googletest/commit/800f5422ac9...
diff --git a/scripts/linux/build.sh b/scripts/linux/build.sh index 1370a6313206..4d333785af8b 100755 --- a/scripts/linux/build.sh +++ b/scripts/linux/build.sh @@ -75,7 +75,7 @@ pushd build chmod a+rwx $(pwd) chmod g+s $(pwd) # CMAKE and MAKE opts from environment - docker run -v $PARENT:/work/openrct2 -w /wor...
6
6
1
[{"id": "G0", "claim": "The test should use fixed, proper test data instead of the placeholder randomness (the TODO 'Seed with some proper randomness' and the 1,2,3,4 bytes should be replaced).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The file sho...
null
OpenRC__openrc__810
OpenRC/openrc
810
defect
e73a63174e1f2631195d788f14d3cd0334efb7f5
0a2cdb0061b4273441d4232915aad62587fcbaef
rc_exec: add a centralized exec function
Depends on: https://github.com/OpenRC/openrc/pull/801
diff --git a/src/kill_all/kill_all.c b/src/kill_all/kill_all.c index e4279bee4..8e2b4712e 100644 --- a/src/kill_all/kill_all.c +++ b/src/kill_all/kill_all.c @@ -31,6 +31,7 @@ #include "einfo.h" #include "rc.h" +#include "rc_exec.h" #include "_usage.h" #include "helpers.h" @@ -51,33 +52,26 @@ const char *usagest...
3
2
0
[{"id": "G0", "claim": "The new `_t`-suffixed typedefs (`rc_exec_args_t`, `rc_exec_result_t`) should be avoided because `_t` is reserved by POSIX and the project aims to remove unnecessary typedefs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
OpenRTX__OpenRTX__164
OpenRTX/OpenRTX
164
defect
a3c7df2b3e0a163b08f4d8080be39e234d827b13
a4a43093fce0935c506dbf425f16fddde8815e50
M17 info on screen
This will show information on the screen when receiving M17. When receiving a stream without the extended callsign data, the source and destination will be shown instead of the configured destination address. ![M17_info](https://github.com/OpenRTX/OpenRTX/assets/49691247/08e40f4f-5da8-4c4c-a281-79d89af74dcf) W...
diff --git a/openrtx/include/rtx/rtx.h b/openrtx/include/rtx/rtx.h index 60f37dabe4..057bce723e 100644 --- a/openrtx/include/rtx/rtx.h +++ b/openrtx/include/rtx/rtx.h @@ -58,6 +58,10 @@ typedef struct char source_address[10]; /**< M17 call source address */ char destination_address[10]; /**< M17...
3
3
1
[{"id": "G0", "claim": "The PR does not display info from the meta field of the LSF, so when a repeater/hotspot transmits voice the original source is not shown, and the functionality to parse the meta field would need to be added.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
OpenRTX__OpenRTX__165
OpenRTX/OpenRTX
165
defect
e689e2f7ae53f15c2828bc5edeb8ed801ddd8050
e88e8da38728e7f96ec7b795ddf6c88837bbadc5
Add GPS status icon to the macro menu and general symbol support
# What Now within the macro menu, when you have GPS enabled, it displays an icon in the top right corner indicating that it is on. The icon shows a different variant when there is a fix as well. This is somewhat hidden right now behind macro, but the intent over time is to experiment with locating more "secondary" U...
diff --git a/meson.build b/meson.build index 50d5d4b016..fb0922dce7 100644 --- a/meson.build +++ b/meson.build @@ -72,6 +72,7 @@ openrtx_inc = ['openrtx/include', 'openrtx/include/calibration', 'openrtx/include/protocols', 'openrtx/include/fonts/adafruit', + ...
6
6
1
[{"id": "G0", "claim": "The script hardcodes the SVG list; consider discovering the SVGs automatically (e.g. glob) so that adding icons does not require touching the code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test (CI) that check...
null
OpenRTX__OpenRTX__306
OpenRTX/OpenRTX
306
defect
185d3f1a2245191ccdb8c2f0c41fe21f6a2a7c04
e6746aed19615f187d144d5a8bfff3a7c9118c81
Keyboard handling improvements
This PR extend support for keyboard handling. By resigning from (not used) KEY_F6 support 4 button events are accessible to get more grained TRX control. Previous implementation allowed to differentiate between a press and long press (no support for single/multi-press and repeats) Based on timings it is possible...
diff --git a/meson.build b/meson.build index 66b3bdd05..e325fa279 100644 --- a/meson.build +++ b/meson.build @@ -156,8 +156,7 @@ openrtx_def += {'GIT_VERSION': git_version} ## TYT MDx family ## -mdx_src = ['platform/drivers/GPS/GPS_MDx.cpp', - 'platform/drivers/NVM/W25Qx.c', +mdx_src = ['platform/drivers/...
5
5
0
[{"id": "G0", "claim": "Rename the verbose `input_allowPressEventOnMultilpeKeysPressed` function to something shorter like `input_enableMultiKeyEvent`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename `processKnobMovementDetection` to add t...
null
OpenRTX__OpenRTX__335
OpenRTX/OpenRTX
335
defect
485dedc8f305c9b86b359b8adba7d4705d74ff27
3bdf45ae1e27fcda723b27461dea8f704c510364
Spectrum feature: Initial bringover from A36plus branch
This commit also includes some debug lines to see if/why/how stuff didn't draw.
diff --git a/openrtx/include/core/graphics.h b/openrtx/include/core/graphics.h index c0bdc8d74d..b44f84faf1 100644 --- a/openrtx/include/core/graphics.h +++ b/openrtx/include/core/graphics.h @@ -163,6 +163,13 @@ void gfx_fillScreen(color_t color); */ void gfx_setPixel(point_t pos, color_t color); +/** + * Get the ...
19
18
6
[{"id": "G0", "claim": "Parenthesize each logic condition in the new gfx_getPixel bounds check to improve readability.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Generalize gfx_getPixel to also handle CONFIG_PIX_FMT_BW.", "category": "correc...
null
OpenRTX__OpenRTX__339
OpenRTX/OpenRTX
339
defect
485dedc8f305c9b86b359b8adba7d4705d74ff27
00b51e0a5400fe69065bb9be2f49cce712631732
Add Battery percentage in settings and UI
Work from https://github.com/OpenRTX/OpenRTX/pull/328. This adds battery percentage as default on screen.
diff --git a/openrtx/include/core/settings.h b/openrtx/include/core/settings.h index 84a2a5e9b..7cbb68b4a 100644 --- a/openrtx/include/core/settings.h +++ b/openrtx/include/core/settings.h @@ -62,6 +62,7 @@ typedef struct _reserved : 3; bool m17_can_rx; // Check M17 CAN on RX c...
2
2
1
[{"id": "G0", "claim": "Remove the blank line added in rtxStatus_t because it is not used.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The batteryIcon string entry added in the middle of the strings table (and its English and Spanish initiali...
null
OpenRTX__OpenRTX__353
OpenRTX/OpenRTX
353
defect
3add35275c548368b532d77f5e72a54f5d801f3c
2fb2d83d1272f84910f1b72194f309fd69bcaeda
FM Menu
This PR is my attempt at helping to land https://github.com/OpenRTX/OpenRTX/pull/261. From the original changes, I've: - Rebased to get latest master and addressed conflicts - Rewritten the commit history to have feature-oriented commits (but kept the author for credit) - Added to the FM Settings menu the abil...
diff --git a/openrtx/include/ui/EnglishStrings.h b/openrtx/include/ui/EnglishStrings.h index 4fa85b3ec2..7f7fe78be3 100644 --- a/openrtx/include/ui/EnglishStrings.h +++ b/openrtx/include/ui/EnglishStrings.h @@ -97,5 +97,16 @@ const stringsTable_t englishStrings = .macroLatching = "Macro Latching", .noGps ...
4
2
1
[{"id": "G0", "claim": "The feature-oriented UI helper functions added to ui.c need a better home than ui.c, marked with a TODO for now since this PR is not the place to introduce one.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded...
null
OpenRTX__OpenRTX__390
OpenRTX/OpenRTX
390
defect
1c6725fa5e6e61fdfe56aaa573c76f5401a74a25
2e8a7902ca4f4b5bf622215f6d9e5d877e2f4216
M17 rx and tx meta text
# What This change adds support for both receiving and transmitting M17 meta text. # How This change is based on the work originally done in https://github.com/OpenRTX/OpenRTX/pull/314, current as of https://github.com/OpenRTX/OpenRTX/pull/314/commits/e8c3ea54b93fe894b86d69c29448fdcdb236bb7d. The changes there...
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a397880da5..9505bae9a8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -115,20 +115,6 @@ jobs: run: | cd ${{github.workspace}} meson setup build - - name: M17 Viterbi Unit Test - ...
14
13
0
[{"id": "G0", "claim": "The chained if clauses processing the metadata field suggest that metadata management should first be refactored, e.g. by introducing a generic Metadata class carrying the raw bytes and a type flag, possibly subclassed per type or used with dynamic_cast.", "category": "design", "verdict": "oppos...
null
OpenRTX__OpenRTX__403
OpenRTX/OpenRTX
403
defect
e1d1387ef88bf7712e13fc4d15782bedf87ec414
9cec86da8bb9b015b02978d8ba15b23bf9998ef4
Implement an nvmDevice for STM32 internal flash
This is a continuation of #397 coming from a different source branch mainly. The current state is: The nvmDevice driver is implemented for both STM32F405 and STM32H743. Tests are written for both STM32F405 and STM32H743. The tests runs smoothly for STM32F405. The tests often fails for STM32H743. There is a pro...
diff --git a/meson.build b/meson.build index ddbc7ffdca..137709c855 100644 --- a/meson.build +++ b/meson.build @@ -222,6 +222,7 @@ stm32f405_src = ['platform/mcu/STM32F4xx/boot/startup.cpp', 'platform/drivers/audio/stm32_adc.cpp', 'platform/drivers/audio/stm32_pwm.cpp', ...
9
3
2
[{"id": "G0", "claim": "Factor out the duplicated bank-1/bank-2 flash unlock and erase code of the STM32H7 driver into shared helpers, either via a function taking the registers or via C++ template functions.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
OpenRTX__OpenRTX__442
OpenRTX/OpenRTX
442
defect
088d906cb5f10370ac451a7aac95366ae95220a1
1b6760db589e26704da72324d0c3b080eabefe00
Mic oversampling
This PR takes @JetseVerschuren's work on oversampling and makes a few tweaks based on real world testing (cs7000p and uv390) plus anticipated code review feedback. I'm helping with getting the changes landed here as well as trying to quantify the impact of the work. ## Summary of problem and changes OpenRTX sampl...
diff --git a/meson.build b/meson.build index 9c5a84ce20..44d82f1dac 100644 --- a/meson.build +++ b/meson.build @@ -1135,6 +1135,10 @@ m17_packet_test = executable('m17_packet_test', sources : unit_test_src + ['tests/unit/M17_packet.cpp'], kwargs : unit_test...
8
3
0
[{"id": "G0", "claim": "The new state struct could simply be named \"oversampling\" — the Block suffix in dcBlock stands for dcBlocking, so oversamplingBlock does not need it.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The oversampling facto...
null
OpenRefine__OpenRefine__4757
OpenRefine/OpenRefine
4,757
defect
dba2b8b1311ce58e98f88d767726955ab098e38b
17a8a121991716c5400dcf6a09b6060b7e0a45db
Option to remove Blank Columns upon project creation
Fixes #1750 Changes proposed in this pull request: - Determine whether a column is blank: (based on https://github.com/OpenRefine/OpenRefine/pull/3497): Create a new list<Boolean> in the TabularImportingParserBase class, that represents whether each column has data. - If the store blank column is false, delete th...
diff --git a/main/src/com/google/refine/importers/ImporterUtilities.java b/main/src/com/google/refine/importers/ImporterUtilities.java index 2a79ee8aada68..57ec110fdb267 100644 --- a/main/src/com/google/refine/importers/ImporterUtilities.java +++ b/main/src/com/google/refine/importers/ImporterUtilities.java @@ -249,4 +...
8
8
3
[{"id": "G0", "claim": "The commented-out exploration code submitted in deleteEmptyColumns is not needed and should be removed entirely.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new blank-column feature should have unit tests demonstra...
null
OpenRefine__OpenRefine__6612
OpenRefine/OpenRefine
6,612
defect
b9d4ba7f7998b7448427c2505fb47b2a444d3605
bb09722284bb4fa04ab08a7c70235a82cc1f9ff2
clustering: User defined distances and keyers
The first PR in the GSoC project #4301 Changes in this pull request: - Added `UserDefinedKeyer` class + unit tests for it - Added `UserDefinedDistance` class + unit tests for it - Handled passing the clustering expression to the keyer
diff --git a/main/src/com/google/refine/clustering/binning/UserDefinedKeyer.java b/main/src/com/google/refine/clustering/binning/UserDefinedKeyer.java new file mode 100644 index 000000000000..3c1ccf948613 --- /dev/null +++ b/main/src/com/google/refine/clustering/binning/UserDefinedKeyer.java @@ -0,0 +1,68 @@ +/* + +Cop...
3
2
1
[{"id": "G0", "claim": "The new keyer and distance should be registered so they can be used through the compute-clusters HTTP command, including a way to pass the clustering expression to the keyer (an ad-hoc registration in controller.js).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":...
null
OpenRefine__OpenRefine__6715
OpenRefine/OpenRefine
6,715
defect
aebc4098c34252071739e98c947a3030c9b42095
8cadbbbb542a972dc2fa50b25e67ea57f7b8bc32
Add escape() function options to escape URL path and fragment
Add escape() function options to escape URL path and fragment #6139 Fixes #6139 Changes proposed in this pull request: - escape function to handle escaping of url elements using guava library Path, Param, Fragment - Updated Escape function to provide escape capability for path, query, fragment elements of URL...
diff --git a/main/src/com/google/refine/expr/functions/strings/Escape.java b/main/src/com/google/refine/expr/functions/strings/Escape.java index d9ba9164d067..2431d319d5d7 100644 --- a/main/src/com/google/refine/expr/functions/strings/Escape.java +++ b/main/src/com/google/refine/expr/functions/strings/Escape.java @@ -3...
1
1
0
[{"id": "G0", "claim": "The new URL escaping modes should be qualified with 'url' as the issue requests ('urlpath', 'urlquery', 'urlfragment') instead of the bare identifiers 'path', 'query' and 'fragment' that were implemented.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
OpenRefine__OpenRefine__6739
OpenRefine/OpenRefine
6,739
defect
6d6dfb254badabae1bd6206de812a496d11f2d6f
4f8ae921db6dbfc26ad24ec89a310fc4db7e54b3
GREL Zip function
Zip function addition to GREL Fixes #5440 Changes proposed in this pull request: - Zip function takes in a 2 or more Array parameters and generates output which is an Array of arrays - The length of the output will be that of the shortest input parameter - Supports text, number, date - Usage - zip(array 1, ...
diff --git a/main/src/com/google/refine/expr/functions/arrays/Zip.java b/main/src/com/google/refine/expr/functions/arrays/Zip.java new file mode 100644 index 000000000000..160b8a1d267c --- /dev/null +++ b/main/src/com/google/refine/expr/functions/arrays/Zip.java @@ -0,0 +1,153 @@ +/* + +Copyright 2010, Google Inc. +All...
16
14
7
[{"id": "G0", "claim": "The new file's copyright header should read 'Copyright 2024, OpenRefine contributors' instead of 'Copyright 2010, Google Inc.'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The local variables in Zip.call should be declar...
null
OpenRefine__OpenRefine__6755
OpenRefine/OpenRefine
6,755
defect
09e65b9442801e6cd26cb05ad5b33e5132e47e0c
b2e435cb770bb86ebe73b3ce5cd3566515fd58b3
Add new GREL function to calculate the edit distance #6613
This is the third PR in the GSoC project. Fixes #6613 ## Objective Add the a function to GREL to calculate the number of changes needed to convert one string into another. For instance: `editDistance("New York", "NewYork")` returns 1. `editDistance("M. Makeba", "Miriam Makeba")` returns 5. ## Acknowled...
diff --git a/main/src/com/google/refine/expr/functions/strings/EditDistance.java b/main/src/com/google/refine/expr/functions/strings/EditDistance.java new file mode 100644 index 000000000000..1527d5ccc5b8 --- /dev/null +++ b/main/src/com/google/refine/expr/functions/strings/EditDistance.java @@ -0,0 +1,60 @@ + +package...
8
7
2
[{"id": "G0", "claim": "The invalid-arguments EvalError should be built from an EvalErrorMessage (so it is translatable) using a new message for the two-strings-plus-optional-integer signature instead of concatenating a raw string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int...
null
OpenRefine__OpenRefine__6788
OpenRefine/OpenRefine
6,788
defect
88278652115fc6f0241ad5d1a341769dc583ec2c
495a11d614c7b1eada4aa897d0177064acf0861b
File type detection fails when multiple files are imported at once
File format info was not getting set when multiple files are uploaded. Fixes #6772 Changes proposed in this pull request: - Set format in the import flow for multiple files - Identify format based on the file, added guessBetterFormat() method - Tested with multiple file types the format is getting set correct...
diff --git a/main/src/com/google/refine/importing/ImportingUtilities.java b/main/src/com/google/refine/importing/ImportingUtilities.java index 6209f9a7bf2d6..a969b1711ad31 100644 --- a/main/src/com/google/refine/importing/ImportingUtilities.java +++ b/main/src/com/google/refine/importing/ImportingUtilities.java @@ -439...
4
4
3
[{"id": "G0", "claim": "The pull request should have some tests added for a change of this kind.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The bulk of the code in the new guessBetterFormat(File, String, String) method is duplicated from the method ...
null
OpenRefine__OpenRefine__6880
OpenRefine/OpenRefine
6,880
defect
11168a425bfc829a8d81bc58c2cacb93cca19b52
cd49e0dbf4c04edd7bb078e9c1c601d025ff5558
ODS file incorrectly recognized as XLS #6877
Identifying file format from registered file types as format guessers support text based files. Fixes #6877 Changes proposed in this pull request: - Set seed file format guessed from file using ImportingManger.getFormatFromFileName - Added implementation in BinaryFormatGuesser - Registered BinaryFormatGuesser...
diff --git a/main/tests/server/src/com/google/refine/importing/ImportingUtilitiesTests.java b/main/tests/server/src/com/google/refine/importing/ImportingUtilitiesTests.java index aa75b61c8cae..7c2769bef3da 100644 --- a/main/tests/server/src/com/google/refine/importing/ImportingUtilitiesTests.java +++ b/main/tests/serve...
3
3
3
[{"id": "G0", "claim": "The newly added extension lookup (file.getName().substring(file.getName().indexOf('.'))) will fail for filenames which don't have any '.' in them; instead of re-implementing it, the PR should go through ImportingManager.getFormat which already contains the required logic.", "category": "correctn...
null
OpenRefine__OpenRefine__6967
OpenRefine/OpenRefine
6,967
defect
468603b5a070af6e25e02a3cdecf025527a8a544
76f599b721c6d5884c7cd19023a7086b3b6144e9
Allow uploading new file versions
If there's a match for a file an upload request will be made. The response should contain warnings since the file would already exist. If the only warnings are "exists" and "duplicateversions" another request will be made with `ignorewarnings=1`. This will upload the file as a new version. Allowing these warnings means...
diff --git a/extensions/wikibase/module/langs/translation-en.json b/extensions/wikibase/module/langs/translation-en.json index 448be41d18276..bfd67405377c0 100644 --- a/extensions/wikibase/module/langs/translation-en.json +++ b/extensions/wikibase/module/langs/translation-en.json @@ -288,6 +288,8 @@ "warnings-mess...
5
3
2
[{"id": "G0", "claim": "The upload-new-file-version QAWarning should be facetable, since it can be detected from a single row.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Uploading the same file twice (once without ignorewarnings, then again with it) ...
null
OpenRefine__OpenRefine__6969
OpenRefine/OpenRefine
6,969
defect
468603b5a070af6e25e02a3cdecf025527a8a544
a9a2293bc1a5c9a1b51f53078281a3f0a29ec8d4
Inadequate rate-limiting when editing Wikimedia Commons
Added retry & backoff settings in Wiki data add / update / delete flows Fixes #6055 Changes proposed in this pull request: - Add / Update flows - added retry and exponential backoff settings on WikibaseDataEditor - MediaFileUtils - added retry support in purgePage flow - Updated purge test case to reflect re...
diff --git a/extensions/wikibase/src/org/openrefine/wikibase/editing/EditBatchProcessor.java b/extensions/wikibase/src/org/openrefine/wikibase/editing/EditBatchProcessor.java index d02d5bc49d0c..c3ce81136957 100644 --- a/extensions/wikibase/src/org/openrefine/wikibase/editing/EditBatchProcessor.java +++ b/extensions/wi...
5
5
3
[{"id": "G0", "claim": "The purge retry loop is unlikely to solve the reported throttling problem because the purge API signals rate limiting as a logged warning rather than a thrown exception, and the loop retries with no waiting time between attempts.", "category": "correctness", "verdict": "supported", "priority": "...
null
OpenRefine__OpenRefine__7040
OpenRefine/OpenRefine
7,040
defect
03823257d667dfe242dd5aaf04ca73f2aa0ae943
c4da6015dada60a79ed6c531e31229f0d53b2754
Issue 3218 - Add "remove duplicate rows" menu item
Fixes #3218 Changes proposed in this pull request: - Added new row level command RemoveDuplicateRows - Updated menu to add new sub-option under rows menu - Duplicate row identification uses the columns as specified by the user to identify duplicate rows in the data - First row of duplicate rows is preserved
diff --git a/main/resources/com/google/refine/operations/OperationDescription.properties b/main/resources/com/google/refine/operations/OperationDescription.properties index a6fe3e29e1a3..5ca46ac7dbe6 100644 --- a/main/resources/com/google/refine/operations/OperationDescription.properties +++ b/main/resources/com/google...
14
14
3
[{"id": "G0", "claim": "Joining normalized cell values with '|' into a single string key can create false collisions depending on cell values, so keys should be kept as a List<String> instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The JSON ...
null
OpenRefine__OpenRefine__7053
OpenRefine/OpenRefine
7,053
defect
0ea01aef2dd758fb2ea20d123929843a2e4ff865
978dda424e627373aef80889bb551e1b775eac52
wikibase: Improve recon name for created entities
Fixes #6996 Changes proposed in this pull request: - Extended NewEntityLibrary to also hold label for new entities - Updated EditBatchProcessor performEdit to set label from the value set in NewEntityLibrary - Updated test cases
diff --git a/extensions/wikibase/src/org/openrefine/wikibase/editing/EditBatchProcessor.java b/extensions/wikibase/src/org/openrefine/wikibase/editing/EditBatchProcessor.java index 4a227b8a61b4..057cf6035882 100644 --- a/extensions/wikibase/src/org/openrefine/wikibase/editing/EditBatchProcessor.java +++ b/extensions/wi...
4
4
2
[{"id": "G0", "claim": "Operations saved by previous versions must still load, so the existing test has to stay exactly as it was (old change format only) with a separate test for the new format, demonstrating that the previous format is still supported.", "category": "correctness", "verdict": "supported", "priority": ...
null
OpenRefine__OpenRefine__7061
OpenRefine/OpenRefine
7,061
defect
5f780b45ffa7fd4c8c1f54c412485849ab8f087d
5c209b69204aa3b23717bcc1a1a5d69448b05ac3
fixes #7025: Keep only matching rows
Fixes #7025 Changes proposed in this pull request: - Added New Operation: RowKeepMatchedOperation to allow users to retain only rows that match specific criteria. - Added a corresponding sub-option under the Rows menu - Only rows meeting all conditions specified in the facets are preserved. I also explored ad...
diff --git a/main/resources/com/google/refine/operations/OperationDescription.properties b/main/resources/com/google/refine/operations/OperationDescription.properties index 5ca46ac7dbe6..56f619045e85 100644 --- a/main/resources/com/google/refine/operations/OperationDescription.properties +++ b/main/resources/com/google...
6
6
3
[{"id": "G0", "claim": "The new operation's hardcoded description strings (the brief description and the history-entry description) could be localized using the message keys already introduced.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
OpenRefine__OpenRefine__7116
OpenRefine/OpenRefine
7,116
defect
d878da9ec858d49b62de154c890791ba9eff78d9
c952294ab5929edf864fd94acafdb7574abbbc81
Introduce the Recipe class to hold a list of operations
By introducing a `Recipe` class, we group together functionality that relates to lists of operations into a topical class. This is a first step towards handling recipes in other contexts than `ApplyOperationsCommand`.
diff --git a/main/src/com/google/refine/commands/history/ApplyOperationsCommand.java b/main/src/com/google/refine/commands/history/ApplyOperationsCommand.java index f507b48d67e11..d4945e34bb0b4 100644 --- a/main/src/com/google/refine/commands/history/ApplyOperationsCommand.java +++ b/main/src/com/google/refine/commands...
5
5
0
[{"id": "G0", "claim": "The comment inside computeRequiredColumns should say `currentColumnNames` instead of `columnNames` so it names the actual variable.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly introduced Recipe class should car...
null
OpenRefine__OpenRefine__7211
OpenRefine/OpenRefine
7,211
defect
5014e4d8d31a63b14d0d91011fc87e87fba18072
2d29a286b13ecb515cbbde613224d3aa38afa584
Send absolute row index in request when "last" pagination button is clicked
Fixes #7207 Changes proposed in this pull request: - This change addresses how the "last" pagination navigation button sends the ending point. The current behavior is that it sends the index of the last row relative to a faceted search, and this change is to send the index of the absolute last row in the project. ...
diff --git a/main/src/com/google/refine/commands/row/GetRowsCommand.java b/main/src/com/google/refine/commands/row/GetRowsCommand.java index 6f7a2dcf8191..98b12098d995 100644 --- a/main/src/com/google/refine/commands/row/GetRowsCommand.java +++ b/main/src/com/google/refine/commands/row/GetRowsCommand.java @@ -277,7 +27...
2
2
2
[{"id": "G0", "claim": "The Last button should navigate using the project's total number of rows regardless of rows/records mode and of filtering, but rowModel.total isn't quite that since in records mode it is the total number of records, so the backend should be fixed instead to make totalRows still contain the total...
null
OpenRefine__OpenRefine__7412
OpenRefine/OpenRefine
7,412
defect
78b0145981d2dee3159c0add41c19e6687af1f9f
6974e7fec8821237b57ca7448c73302daae09be6
Set custom user agent for Wikidata calls. Fixes #7383
Fixes #7383 Changes proposed in this pull request: - Set custom user agent on Wikidata Toolkit calls - Set custom user agent on raw okhttp calls
diff --git a/extensions/wikibase/pom.xml b/extensions/wikibase/pom.xml index c2d6e2abcbcf..70ba4178c220 100644 --- a/extensions/wikibase/pom.xml +++ b/extensions/wikibase/pom.xml @@ -15,7 +15,7 @@ </parent> <properties> - <wdtk.version>0.16.0</wdtk.version> + <wdtk.version>0.17.0</wdtk.version> </prope...
4
3
3
[{"id": "G0", "claim": "The user agent string built in HttpClient.getClient() misspells 'okhttp' as 'okhhtp' and should read 'okhttp'.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "FetchManifestCommand.doGet continues executing and writes the respo...
null
OpenRefine__OpenRefine__7446
OpenRefine/OpenRefine
7,446
defect
d94a6e35db9d86feb386afdae5352c1e3ab9ce45
687fda54d360bcd0e4a6c90bdd902b20f3aae644
feat(db-ext): uniform batch size handling for preview and import
Fixes #7444
diff --git a/extensions/database/src/com/google/refine/extension/database/DatabaseImportController.java b/extensions/database/src/com/google/refine/extension/database/DatabaseImportController.java index 1db76515f076..962279993c15 100644 --- a/extensions/database/src/com/google/refine/extension/database/DatabaseImportCo...
5
5
1
[{"id": "G0", "claim": "The parsed batch size should additionally be checked to be greater than 0, otherwise database import will not work.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The property names, their getters and their default constants ...
null
OpenRefine__OpenRefine__7459
OpenRefine/OpenRefine
7,459
defect
74069eaa1b66d97d06d5916c7f91e883da4eba0f
b7a0a38442997ddfe9f5d00df5a9ee17e810ac75
Restore exporter error reporting and clean up XLS/XLSX error handling
Fixes #7368. Fixes #352. Refs #351 This includes a fix for the specific XLS row limit exceeded error (#7368) as well as better error reporting for exporters in general, which we seem to have broken sometime in the recent past. It also fixes #352 (silent truncation of large cells) and provides a better fix for #351 (...
diff --git a/main/src/com/google/refine/commands/project/ExportRowsCommand.java b/main/src/com/google/refine/commands/project/ExportRowsCommand.java index b0be23171cc2..49e3da541f1f 100644 --- a/main/src/com/google/refine/commands/project/ExportRowsCommand.java +++ b/main/src/com/google/refine/commands/project/ExportRo...
2
1
0
[{"id": "G0", "claim": "Accessing row 65536 in test65536Rows will fail with an array index out of bounds because the format supports a maximum of 65536 rows (0-65535), so the test should read row 65535 instead.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cl...
null
OpenRouterTeam__typescript-sdk__60
OpenRouterTeam/typescript-sdk
60
defect
f6c1933634ea526b7f0d4e000230e8fe1cef8e8a
cf4875e9421c6001503220dfcac09269644e1124
Add e2e tests for embeddings.generate() method
## Summary This PR adds comprehensive end-to-end tests for the newly added embeddings API functionality. ## Changes - ✅ Added `tests/e2e/embeddings.test.ts` with 5 test cases covering: - Single text input embeddings generation - Multiple text inputs (batch processing) - Embedding dimensions consistency validatio...
diff --git a/tests/e2e/README.md b/tests/e2e/README.md index 3876d1065..e4d6d37f4 100644 --- a/tests/e2e/README.md +++ b/tests/e2e/README.md @@ -61,9 +61,19 @@ The e2e test suite includes: - Testing the beta responses endpoint - Note: This endpoint is in alpha/beta and may require updates +### Embeddings Tests (`em...
1
1
0
[{"id": "G0", "claim": "The \"should include model information in response\" test should also check the usage information in the response.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
OpenSC__OpenSC__1145
OpenSC/OpenSC
1,145
defect
f0e703be4935cadd76d8773c4ce5bd3ad7386da0
692eee3d232c45c2541b9c17dce189ac756d33a9
Add ECC support and solve wrong Length status codes with SM card
Fixes #1073 Fixes #1115 <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation is added or updated - [ ] New files have a LGPL 2.1 license statement - [ ] Tested with the following card: <!-- use `opensc-tool -n` to get the name of your card --> - [x] tested PKCS#1...
diff --git a/src/libopensc/card-epass2003.c b/src/libopensc/card-epass2003.c index 84ab645692..7feab59846 100644 --- a/src/libopensc/card-epass2003.c +++ b/src/libopensc/card-epass2003.c @@ -98,6 +98,8 @@ typedef struct epass2003_exdata_st { unsigned char sk_enc[16]; /* encrypt session key */ unsigned char sk_mac[1...
1
1
1
[{"id": "G0", "claim": "The new hash_data() ignores the return values of sha1_digest/sha256_digest and the new EC call sites in epass2003_decipher() ignore the return value of hash_data(), so a failed digest would silently leave a stale/zeroed hash that is then used; the reviewer asks that error checking be added for t...
null
OpenSC__OpenSC__1489
OpenSC/OpenSC
1,489
defect
496a9b571d5bdedbd9797b5495c18f05435edb45
b1440c38dc2ccab5dedb1422dce194cac8031169
Another round of coverity review
There was another run of coverity, that I shoveled through today. Attached are minor fixes that either make the code more straightforward for the static analyzers or fix some real (but minor) problem. ##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [X] PKCS#11 mod...
diff --git a/src/libopensc/card-epass2003.c b/src/libopensc/card-epass2003.c index 49b593f9ec3..299520d60bb 100644 --- a/src/libopensc/card-epass2003.c +++ b/src/libopensc/card-epass2003.c @@ -1846,11 +1846,6 @@ epass2003_process_fci(struct sc_card *card, sc_file_t * file, const u8 * buf, si case 0x04: file-...
1
1
1
[{"id": "G0", "claim": "Remove the change to the generated file src/tools/npa-tool-cmdline.c; the fix belongs in gengetopt upstream, not here.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
OpenSC__OpenSC__1528
OpenSC/OpenSC
1,528
defect
eddea6f3c2d3dafc2c09eba6695c745a61b5186f
339ec1ec7ca230323a25d0372187a6132a9ddd9a
Fix C_UnwrapKey related issues. Code formatting in framework-pkcs15.c
The following changes are included: - Fixes an issue in pkcs15-lib: calling check_key_compatibility in sc_pkcs15init_store_secret_key did not give correct result when called from C_UnwrapKey, in case CKA_EXTRACTABLE was false. Use value_len argument which is set even if we don't have key data yet. - Adds AES algori...
diff --git a/src/libopensc/pkcs15.c b/src/libopensc/pkcs15.c index 4313407e72..f33832c977 100644 --- a/src/libopensc/pkcs15.c +++ b/src/libopensc/pkcs15.c @@ -2574,6 +2574,31 @@ sc_pkcs15_get_supported_algo(struct sc_pkcs15_card *p15card, unsigned operation, return info; } +struct sc_supported_algo_info * +sc_pkcs...
2
2
1
[{"id": "G0", "claim": "The sc_compare_oid result must be compared explicitly (1 == sc_compare_oid(...)) because a negative error return would otherwise be treated as a successful OID match.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The extra s...
null
OpenSC__OpenSC__1540
OpenSC/OpenSC
1,540
defect
b01ca2dcc9bf4a19b13e2f623f974e455390435a
6bf9685482fcbc450bc5ac8a2d0ec84e48cf6960
Fix some pinpad reader related issues
1. Show pinpad reader capabilities even for uninitialised tokens. This way pinpad can be used during token initialisation. 2. Make possible to create SO PIN object during initialisation (using pkcs15-init app) even if no SO PIN was provided (on the command line) but pinpad reader is used and card profile contains SO...
diff --git a/src/pkcs11/framework-pkcs15.c b/src/pkcs11/framework-pkcs15.c index 44d352b585..929dac6d59 100644 --- a/src/pkcs11/framework-pkcs15.c +++ b/src/pkcs11/framework-pkcs15.c @@ -1140,6 +1140,11 @@ pkcs15_create_slot(struct sc_pkcs11_card *p11card, struct pkcs15_fw_data *fw_dat /* Fill in the slot/token info ...
1
1
0
[{"id": "G0", "claim": "In sc_pkcs15init_add_app the SO PIN handling looks like a hack: the code should set has_so_pin explicitly in both cases (has_so_pin = args->so_pin_len != 0) and call sc_pkcs15init_qualify_pin only when args->so_pin_len is non-zero, instead of entering the qualify branch with a length of 0.", "ca...
null
OpenSC__OpenSC__1677
OpenSC/OpenSC
1,677
defect
3a192e2c87430472b2777e08b724742787378831
f68dbc329a7aa2631828d80b28dfd58a444aba91
Unbreak derive for sc-hsm and myeid cards
This should address the #1609, which was caused by refactoring of the mechanisms passing in the post-0.19.0 work. I tested this with sc-hsm using the following test at this moment (from #1609): ``` $ ./src/tools/pkcs11-tool --module ./src/pkcs11/.libs/opensc-pkcs11.so --login --pin 123456 --derive -m ECDH1-DERIVE ...
diff --git a/.travis.yml b/.travis.yml index 0e4080cd5e9..050291e9a4b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,9 +8,14 @@ matrix: - compiler: gcc os: linux env: - - DO_SIMULATION=yes + - DO_SIMULATION=javacard - ENABLE_DOC=--enable-doc sudo: true + - compiler:...
4
2
1
[{"id": "G0", "claim": "The pull request as written breaks the hashed mechanisms for RSA and ECDSA, for a not-yet-understood reason, and needs investigation and a fix.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The travis simulation fails, apparent...
null
OpenSC__OpenSC__1772
OpenSC/OpenSC
1,772
defect
b0241eefa1b47f1420456f5dbc43564d59961a54
762edd38cbc995972e1b6518f23c0826245660b8
Add support for Gemalto IDPrime smart cards
The card is largely ISO 7816 compliant, but does not provide any simple way of listing the content which is supported by current PKCS#15 implementation therefore the PKCS#15 emulator had to be used. The certificates are compressed in a similar way as in DNIE cards which complicates reading from the card and whic...
diff --git a/src/libopensc/Makefile.am b/src/libopensc/Makefile.am index 49d122682fc..a9f200c959c 100644 --- a/src/libopensc/Makefile.am +++ b/src/libopensc/Makefile.am @@ -48,14 +48,14 @@ libopensc_la_SOURCES_BASE = \ card-iasecc.c iasecc-sdo.c iasecc-sm.c card-sc-hsm.c \ card-dnie.c cwa14890.c cwa-dnie.c \ card...
29
20
8
[{"id": "G0", "claim": "The new case-shortening in fixup_transceive_length uses the wrong bound (apdu->le <= 255 instead of <= 256) and should not clear SC_APDU_EXT.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new X.509 usage macros might be ...
null
OpenSC__OpenSC__1845
OpenSC/OpenSC
1,845
defect
c3f23b836e5a1766c36617fe1da30d22f7b63de2
766e6386e8e436a08bc03586d15a7810653f3c04
Fix some issues reported by Coverity
<!-- Thank you for your pull request. If this fixes a GitHub issue, make sure to have a line saying 'Fixes #XXXX' (without quotes) in the commit message. Mention which card(s) are used during testing. To get the name of your card, run this command: `opensc-tool -n` --> ##### Checklist <!-- Remove items th...
diff --git a/src/libopensc/card-dnie.c b/src/libopensc/card-dnie.c index 905579cb53e..ce0bc33a100 100644 --- a/src/libopensc/card-dnie.c +++ b/src/libopensc/card-dnie.c @@ -272,14 +272,6 @@ int dnie_ask_user_consent(struct sc_card * card, const char *title, const char * LOG_FUNC_RETURN(card->ctx, SC_SUCCESS); LOG_...
3
2
2
[{"id": "G0", "claim": "The strdup-based fix in read_options_file is incorrect: it can leave optarg pointing into the static strtok buffer, which the next loop cycle overwrites.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Replacing LOG_TEST_RET w...
null
OpenSC__OpenSC__2012
OpenSC/OpenSC
2,012
defect
5e79a2a4abdd523cfff19824718bbb0d8ced7320
2ebfda026a66e73549ff8c9f0bde45a636e8a88d
Fuzzing issues to be able to improve oss-fuzz integration
Some time ago (1742dfc0), I created first corpus files that go through the whole process of card detection for the cards I have at hand (various CAC, various PIV, CardOS, coolkey). This lead into few crashes in the fuzzers that are currently resolved so I proposed changes to merge them in google/oss-fuzz#3683. But just...
diff --git a/configure.ac b/configure.ac index 6219f36b708..705bc027f1b 100644 --- a/configure.ac +++ b/configure.ac @@ -79,7 +79,7 @@ AC_ARG_WITH( ) if test "${enable_optimization}" = "no"; then - CFLAGS="-O0 -g" + CFLAGS="${CFLAGS} -O0 -g" fi dnl Check for some target-specific stuff diff --git a/src/libopensc...
5
3
2
[{"id": "G0", "claim": "The sc_asn1_put_tag() calls introduced in card-piv.c should have their return values checked for errors (e.g. check `sbuflen > 0` in piv_put_data()).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In piv_put_data() the sc_asn...
null
OpenSC__OpenSC__2271
OpenSC/OpenSC
2,271
defect
5f9085fedb5fba3695f90da4efdbdec7a136a4e8
23f3e504ef91e4262a6b97adcbcbf5a0983b74bf
minor fixup after the eddsa merge
##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [X] PKCS#11 module is tested - [ ] Windows minidriver is tested - [ ] macOS tokend is tested
diff --git a/src/pkcs11/framework-pkcs15.c b/src/pkcs11/framework-pkcs15.c index fdd5c8e55a..4ef74b551e 100644 --- a/src/pkcs11/framework-pkcs15.c +++ b/src/pkcs11/framework-pkcs15.c @@ -5564,7 +5564,7 @@ static CK_RV get_ec_pubkey_params(struct sc_pkcs15_pubkey *key, CK_ATTRIBUTE_PTR attr) { struct sc_ec_parameter...
1
1
1
[{"id": "G0", "claim": "With `attr->ulValueLen = (unsigned long)value_size;` assigned before the size checks, the later check `attr->ulValueLen < (unsigned long)value_size` can never be false-positive (it always compares the buffer's required size against itself), so the CKR_BUFFER_TOO_SMALL path is broken.", "category...
null
OpenSC__OpenSC__2343
OpenSC/OpenSC
2,343
defect
0b45e78e4fd983e68f9073944d8a2bd82d84a3bb
36a8ffa1f195c6aecc5e6f31bc2f42482e1f7ec9
Working subset of #2337 (OpenSSL 3.0)
More minor changes that should work and be ready for merging for OpenSSL 3.0 support. Subset of larger PR #2337, which still needs some work. ##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation is added or updated - [ ] New files have a LGPL 2.1 lic...
diff --git a/configure.ac b/configure.ac index 62afc6e27d5..d88d71812d2 100644 --- a/configure.ac +++ b/configure.ac @@ -133,7 +133,7 @@ esac AX_CODE_COVERAGE() -AX_CHECK_COMPILE_FLAG([-Wunknown-warning-option], [have_unknown_warning_option="yes"], [have_unknown_warning_option="no"], [-Werror]) +AX_CHECK_COMPILE_F...
2
2
0
[{"id": "G0", "claim": "The COMPAT_RSA/COMPAT_EC_KEY version-switching macros should be dropped in favour of simply adding const everywhere the code accesses structures acquired via EVP_PKEY_get0_*.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The p11t...
null
OpenSC__OpenSC__2506
OpenSC/OpenSC
2,506
defect
6f870b6d10f2089b042a95b22611adc801212319
4ed2d733a03b2482825aea009fb544318c9e7891
sc-ossl-compat.h cleanup for OpenSSL and LibreSSL
Remove unused code and misplaced defines from sc-ossl-compat.h to support OpenSSL 1.1.1 and 3.0.0+ and LibreSSL 3.4.2+ The "inline" routines are no longer needed and have been removed, as new functions replaced them. Many of the changes to previous version of `sc-ossl-compat.h` added many `#ifndef ... #define...
diff --git a/src/libopensc/sc-ossl-compat.h b/src/libopensc/sc-ossl-compat.h index ec694ad48de..5a3ae492d86 100644 --- a/src/libopensc/sc-ossl-compat.h +++ b/src/libopensc/sc-ossl-compat.h @@ -30,81 +30,22 @@ extern "C" { #include <openssl/opensslv.h> #include <openssl/opensslconf.h> /* - * Provide backward compatib...
9
9
6
[{"id": "G0", "claim": "The condition `(bn = NULL) == NULL` is always true, so every failure path reaches `r = SC_ERROR_UNKNOWN;` (Jakuje also noted the return-value checks should use `< 1`).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The OSX an...
null
OpenSC__OpenSC__2513
OpenSC/OpenSC
2,513
defect
6a7be63e38783b6086ced7950ed834bce46f3657
b60b47c682fbd1e95f4342dfd58b2bdeae0468ea
Fixed more problems reported by coverity
<!-- Thank you for your pull request. If this fixes a GitHub issue, make sure to have a line saying 'Fixes #XXXX' (without quotes) in the commit message. Mention which card(s) are used during testing. To get the name of your card, run this command: `opensc-tool -n` --> ##### Checklist <!-- Remove items th...
diff --git a/src/libopensc/card-epass2003.c b/src/libopensc/card-epass2003.c index e362eddd755..7efa3397466 100644 --- a/src/libopensc/card-epass2003.c +++ b/src/libopensc/card-epass2003.c @@ -433,8 +433,8 @@ openssl_dig(const EVP_MD * digest, const unsigned char *input, size_t length, } EVP_MD_CTX_init(ctx); -...
4
2
0
[{"id": "G0", "claim": "Coverity CID 376511 reports that \"alg\" may be passed to print_ssh_key as a non-NUL-terminated string at the ssh-ed25519 and ecdsa call sites, and the reviewer asks to restructure the string construction (as in his patch) so that the warning is eliminated.", "category": "correctness", "verdict"...
null
OpenSC__OpenSC__2588
OpenSC/OpenSC
2,588
defect
58d8099cb65d02589b4c54fbb5c820b0f4183aa5
2fa9eaf7d6fbe7a4701c1b7d84ae1752753aa5ab
Add configuration option for on-disk caching of private data
This PR adds the configuration option `cache_private_data` that enables switching off on-disk caching of data flagged as private (with `SC_PKCS15_CO_FLAG_PRIVATE`). When both options `use_file_caching` and `cache_private_data` are enabled in config file, private objects are cached along with non-private. By default, ca...
diff --git a/doc/files/files.html b/doc/files/files.html index a07c0b2858a..d2b92253a56 100644 --- a/doc/files/files.html +++ b/doc/files/files.html @@ -759,6 +759,22 @@ cached information. Note that the cached files may contain personal data such as name and mail address. + </p></dd><dt><sp...
7
5
2
[{"id": "G0", "claim": "The paragraph about caching by a system process in the cache_private_data documentation duplicates the one under file_cache_dir and is not needed in this option.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The cache_priv...
null
OpenSC__OpenSC__2594
OpenSC/OpenSC
2,594
defect
58d8099cb65d02589b4c54fbb5c820b0f4183aa5
6a49423aaabe621f42c71da5c6bf20fd6e960ecf
Oss-fuzz issues
Fixing another batch of recent issues reported by OSS-Fuzz, mainly memory leaks. ##### Checklist - [ ] PKCS#11 module is tested - [ ] Windows minidriver is tested - [ ] macOS tokend is tested
diff --git a/src/pkcs15init/pkcs15-iasecc.c b/src/pkcs15init/pkcs15-iasecc.c index 4e92a2f6dd4..7d95cfe81b0 100644 --- a/src/pkcs15init/pkcs15-iasecc.c +++ b/src/pkcs15init/pkcs15-iasecc.c @@ -125,7 +125,7 @@ iasecc_pkcs15_erase_card(struct sc_profile *profile, struct sc_pkcs15_card *p15c LOG_FUNC_CALLED(ctx); - ...
3
3
1
[{"id": "G0", "claim": "In do_card_driver() the null check before free() is unnecessary because free() on a null pointer is a no-op, so the added guard should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When sc_hex_to_bin fails fo...
null
OpenSC__OpenSC__2604
OpenSC/OpenSC
2,604
defect
65892da2360fe74e872c54ae8137fc96773341b4
d3303b0f875d88ff0d64c9aff0c2383fc93a9683
Fix record based files
This pull request is based on #2511 and it implements my changes on top of it. That is, - sc_read_record and sc_update_record (and their driver call backs) get a new parameter idx for specifying an offset - sc_read_record and sc_update_record can now handle big amounts of data that is split up into several chunks wri...
diff --git a/src/libopensc/card-gpk.c b/src/libopensc/card-gpk.c index 34bfaa727f3..429763fbb4d 100644 --- a/src/libopensc/card-gpk.c +++ b/src/libopensc/card-gpk.c @@ -1089,7 +1089,7 @@ gpk_set_security_env(sc_card_t *card, LOG_TEST_RET(card->ctx, r, "Failed to select PK file"); /* Read the sys record of the PK ...
3
3
1
[{"id": "G0", "claim": "Use the MIN() macro from internal.h instead of the hand-written ternary (todo > max_le ? max_le : todo) in sc_read_record(), and likewise MIN(todo, max_lc) in sc_update_record(), to simplify the code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
OpenSC__OpenSC__2637
OpenSC/OpenSC
2,637
defect
cb8f78ce5e9cc3e5ecc47163c3ec89f6c8e4a203
bd8760a4175989324a3f8faa9ef0486c88a583c8
OSS-Fuzz issues
Fixing latest issues reported by OSS-Fuzz ##### Checklist - [ ] PKCS#11 module is tested - [ ] Windows minidriver is tested - [ ] macOS tokend is tested
diff --git a/src/libopensc/asn1.c b/src/libopensc/asn1.c index df1f1c8fa7b..ea0bf302b26 100644 --- a/src/libopensc/asn1.c +++ b/src/libopensc/asn1.c @@ -1679,6 +1679,38 @@ static int asn1_decode_entry(sc_context_t *ctx,struct sc_asn1_entry *entry, return 0; } +static void sc_free_entry(struct sc_asn1_entry *asn1) ...
5
4
1
[{"id": "G0", "claim": "The new switch statement in sc_free_entry should have a space after the keyword: `switch (entry->type)` instead of `switch(entry->type)`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new bounds check in authentic_ge...
null
OpenSC__OpenSC__2642
OpenSC/OpenSC
2,642
defect
a1c8841f2d2554bd237c17f03987b1266bb1a01b
12f22f43d7e957f50c7b4f3543eef3f18e7bcab8
isoapplet offcard hash
Hi, currently the IsoApplet and OpenSC only support ECDSA-SHA1 because the hash is computed on-card. This pull request adds support for ECDSA, ECDSA-SHA224, ECDSA-SHA256, ECDSA-SHA384, ECDSA-SHA512 by computing the hash off-card. The IsoApplet needs to be changed: https://github.com/philipWendland/IsoApplet/comp...
diff --git a/.github/test-isoapplet.sh b/.github/test-isoapplet.sh index 5a4e03a02e1..ce068acebd8 100755 --- a/.github/test-isoapplet.sh +++ b/.github/test-isoapplet.sh @@ -2,6 +2,15 @@ set -ex -o xtrace +isoapplet_version="v0" +isoapplet_branch="main" +isoapplet_pkgdir="net/pwendland/javacard/pki/isoapplet" +if [...
8
8
2
[{"id": "G0", "claim": "The pull request replaces on-card hashing with off-card hashing and, with the applet major-version change, breaks all existing deployments on older IsoApplet applets, so the driver should support both - on-card SHA1 hashing for old applet versions and off-card hashing for the new version - inste...
null
OpenSC__OpenSC__2666
OpenSC/OpenSC
2,666
defect
9dd5a8bd62a356091bb8e67492ca9171c4deba34
388c462f5a5004ddb5f0d00ec0021c46057d25cc
Support for IDPrime MD 830, 930 and 940 cards
Driver `card-idprime.c` does not support some of the IDPrime cards - MD 830, 930 and 940. The main problem is not matching key references that are assigned during the processing of the index file. The key references were recently set according to the OS version. However, some of the tested cards shared the same OS v...
diff --git a/src/libopensc/card-idprime.c b/src/libopensc/card-idprime.c index c20f82f11a0..50f273c473c 100644 --- a/src/libopensc/card-idprime.c +++ b/src/libopensc/card-idprime.c @@ -49,8 +49,28 @@ static struct sc_card_driver idprime_drv = { * are not useful here */ static const struct sc_atr_table idprime_atrs[]...
15
14
7
[{"id": "G0", "claim": "The new select functions (and the same construct in the other select functions) override any error from iso_ops->select_file with SC_ERROR_INVALID_DATA and should instead return the select_file error, using file->size only on success.", "category": "correctness", "verdict": "supported", "priorit...
null
OpenSC__OpenSC__2682
OpenSC/OpenSC
2,682
defect
076a8856a6565e4d8b7be77f15d02db13b4c70c9
b2322725a001003dcd91acb66a9ef29ea703f595
Handle reader limits for SC Card unwrap operations - Fixes #2514
Fixes #2514 Using reader with a card: REINER SCT cyberJack RFID komfort (4639352370) 00 00 SmartCard-HSM version 3.4 ##### Checklist - [ ] Documentation is added or updated - [ ] PKCS#11 module is tested - [ ] Windows minidriver is tested - [ ] macOS tokend is tested
diff --git a/src/libopensc/card-sc-hsm.c b/src/libopensc/card-sc-hsm.c index 60d5895127e..0204c53c048 100644 --- a/src/libopensc/card-sc-hsm.c +++ b/src/libopensc/card-sc-hsm.c @@ -730,12 +730,12 @@ static int sc_hsm_pin_cmd(sc_card_t *card, struct sc_pin_cmd_data *data, u8 recvbuf[SC_MAX_APDU_BUFFER_SIZE]; #ifdef...
7
6
1
[{"id": "G0", "claim": "The CI build fails because the new chunked-send code in card-sc-hsm.c declares 'sent' set but not used (-Werror -Wunused-but-set-variable); please fix the compiler warnings.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Buil...
null
OpenSC__OpenSC__2817
OpenSC/OpenSC
2,817
defect
f1993dc4e0b33050b8f72a3558ee88b24c4063b2
ffc0798b3a6451c73058daf4414d7d090afcb39b
Attempt to squash some more coverity reports.
##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation is added or updated - [ ] New files have a LGPL 2.1 license statement - [ ] PKCS#11 module is tested - [ ] Windows minidriver is tested - [ ] macOS tokend is tested
diff --git a/src/libopensc/apdu.c b/src/libopensc/apdu.c index 3c13a6f2413..07a4bc2bdc3 100644 --- a/src/libopensc/apdu.c +++ b/src/libopensc/apdu.c @@ -402,8 +402,8 @@ sc_set_le_and_transmit(struct sc_card *card, struct sc_apdu *apdu, size_t olen) apdu->resplen = olen; apdu->le = nlen; #ifndef FUZZING_BUILD_...
1
1
0
[{"id": "G0", "claim": "The comment above tapdu.le should be rewritten to say 'the intermediate APDU don't expect response data' to prevent confusion.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
OpenSC__OpenSC__2945
OpenSC/OpenSC
2,945
defect
d43cfd8afc59c872f13226b7076cdd2d817aca32
3893b1ea2d2b52e84f54e01b129f9de2062cc64d
Fix more fuzzing issues and alternative proposal for #2904 (which looks stuck)
I included also fix for #2904 as the fuzzer bumped into that after fixing the https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=64522 with the same input. ##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation is added or updated - [ ] New files ha...
diff --git a/.github/build.sh b/.github/build.sh index 967761f648b..402d1e80c3a 100755 --- a/.github/build.sh +++ b/.github/build.sh @@ -57,6 +57,7 @@ else if [ "$1" == "no-shared" ]; then CONFIGURE_FLAGS="$CONFIGURE_FLAGS --disable-shared" fi + export CFLAGS="-DDEBUG_PROFILE=1 $CFLAGS" ./configure $CONFIGURE_...
1
1
0
[{"id": "G0", "claim": "nit: the empty lines inside the if/else branches of epass2003_pkcs15_generate_key should be removed too.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}]
null
OpenSC__OpenSC__2948
OpenSC/OpenSC
2,948
defect
d43cfd8afc59c872f13226b7076cdd2d817aca32
d2c5c32ae9c10dafc3b58a3a08fbfd85eaef4ed0
Constant time RSA PKCS#1 v1.5 depadding
This PR implements constant-time PKCS#1 v1.5 depadding and return value handling after RSA decryption. The returned value and depadded message are handled in the same way, both for valid and invalid padding, not to disclose the result of the depadding operation in the time side-channel. - The details on the related ...
diff --git a/src/common/Makefile.am b/src/common/Makefile.am index 5153428dce6..9ecbffe8fd6 100644 --- a/src/common/Makefile.am +++ b/src/common/Makefile.am @@ -8,7 +8,8 @@ dist_noinst_DATA = \ LICENSE.compat_getopt compat_getopt.txt \ compat_getopt_main.c \ README.compat_strlcpy compat_strlcpy.3 -noinst_HEADERS ...
18
15
4
[{"id": "G0", "claim": "The new constant-time helpers should carry OpenSSL's explanatory comment about the boolean methods returning an all-ones bitmask.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Because keeping the whole stack constant-time ...
null
OpenSC__OpenSC__2975
OpenSC/OpenSC
2,975
defect
773fcc6bd0d047aa629dd297e87244ca3add5b16
ca277c4c50a29e17b2f00ca953fdc9b404214ecf
Add option for disabling HW PKCS#1 v1.5 padding
This PR implements a configuration option for global disabling HW PKCS#1 v1.5 depadding if the card supports it. The depadding is then done in OpenSC rather than by the card. That can mask time time deviations between correct and incorrect padding. The initial idea is discussed in #2948 (https://github.com/OpenSC/OpenS...
diff --git a/doc/files/files.html b/doc/files/files.html index 3bcb8136d4f..e32f479c116 100644 --- a/doc/files/files.html +++ b/doc/files/files.html @@ -877,6 +877,25 @@ </span></dt><dd><p> Enable initialization and card recognition (Default: <code class="literal">false</code>). + </p></dd><dt...
11
10
2
[{"id": "G0", "claim": "SC_ALGORITHM_RSA_PAD_PKCS1 should be split into separate PKCS#1 v1.5 type 1 and type 2 flags, with global option(s) so that HW type 1 padding (signatures) and type 2 depadding (decryption) can be suppressed independently.", "category": "design", "verdict": "supported", "priority": "P1", "scope":...
null
OpenSC__OpenSC__2977
OpenSC/OpenSC
2,977
defect
773fcc6bd0d047aa629dd297e87244ca3add5b16
1afa71f323b0106c28b962db1cf6d654066043bd
Minimal updated subset of changes from #2017 (clang-format)
Based on last comment in #2017 from @popovec I pulled the .clang-format and some minimal changes to the separate branch, that can be merged if we will agree on that format. I played with it a bit more, but I am still not completely satisfied with the current configuration as it sometimes formats some complicated con...
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..1b77160762 --- /dev/null +++ b/.clang-format @@ -0,0 +1,42 @@ +BasedOnStyle: LLVM +# defaults from LLVM +# BreakBeforeBraces: Attach +# AllowShortIfStatementsOnASingleLine: Never +# IndentCaseLabels: false +# AlignAfterOpenBracket: Align ...
4
2
0
[{"id": "G0", "claim": "The new formatting CI reports a single formatting remark in src/libopensc/card-openpgp.c that should be fixed (the reviewer requested changes until it is).", "category": "style", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The .clang-format added by t...
null
OpenSC__OpenSC__3016
OpenSC/OpenSC
3,016
defect
d732681a3b04629b57cfe931a249d530a97105e9
a54157fc32a208153b0178421207da98e19e8918
Coverity issues
Fixes for recently reported Coverity issues ##### Checklist - [ ] Documentation is added or updated - [ ] New files have a LGPL 2.1 license statement - [ ] PKCS#11 module is tested
diff --git a/src/pkcs11/framework-pkcs15.c b/src/pkcs11/framework-pkcs15.c index cb4df7a64fe..d5dea4a7297 100644 --- a/src/pkcs11/framework-pkcs15.c +++ b/src/pkcs11/framework-pkcs15.c @@ -4627,11 +4627,11 @@ pkcs15_prkey_decrypt(struct sc_pkcs11_session *session, void *obj, /* only padding error must be handled in...
1
1
0
[{"id": "G0", "claim": "The PR should not cast the negative `rv` to `size_t` before the constant-time comparison (as added at framework-pkcs15.c:4630); a signed-integer comparison such as `constant_time_eq_i`, or a shared temporary variable, would be cleaner and safer.", "category": "correctness", "verdict": "supported...
null
OpenSC__OpenSC__3024
OpenSC/OpenSC
3,024
defect
8b4cdc40204abdb9713569e1062028dda539f1b1
fd63bebaac470fa3db70c570d67b72b79ffc2486
OpenPGP: fixed state tracking after erasing card
fixes https://github.com/OpenSC/OpenSC/issues/3018 <!-- Thank you for your pull request. If this fixes a GitHub issue, make sure to have a line saying 'Fixes #XXXX' (without quotes) in the commit message. Mention which card(s) are used during testing. To get the name of your card, run this command: `opensc-...
diff --git a/src/libopensc/card-openpgp.c b/src/libopensc/card-openpgp.c index 2adcae6a6c7..deb19e91696 100644 --- a/src/libopensc/card-openpgp.c +++ b/src/libopensc/card-openpgp.c @@ -357,6 +357,25 @@ pgp_match_card(sc_card_t *card) } +/* populate MF - add matching blobs listed in the pgp_objects table */ +int po...
3
2
1
[{"id": "G0", "claim": "If pgp_new_blob() fails, the memory allocated by sc_file_new() is leaked in populate_blobs_to_mf (a leak that was already in the original code, which the reviewer notes, and which should be fixed now that it was noticed).", "category": "correctness", "verdict": "supported", "priority": "P1", "sc...
null
OpenSC__OpenSC__3130
OpenSC/OpenSC
3,130
defect
1fb5655d6907d380e9069fefb5e2ec9eaf8657eb
7d554eaacd36e6d12b19c2a1003878fc6c30af2b
Include URIs for PKCS#11 objects
Fixes: #3129 Tested with card: ```bash $ opensc-tool -n Using reader with a card: Yubico YubiKey OTP+CCID 00 00 Personal Identity Verification Card ```
diff --git a/src/tests/fuzzing/fuzz_pkcs15init.c b/src/tests/fuzzing/fuzz_pkcs15init.c index e44e3aae35d..85810ded77b 100644 --- a/src/tests/fuzzing/fuzz_pkcs15init.c +++ b/src/tests/fuzzing/fuzz_pkcs15init.c @@ -109,7 +109,7 @@ int fuzz_get_reader_data(const uint8_t *from, size_t from_size, const uint8_t ** size_...
4
4
2
[{"id": "G0", "claim": "Reuse the label and id variables already obtained from getLABEL/getID when building the object URI instead of querying the card/module again.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reusing the id buffer for the URI wh...
null
OpenSC__OpenSC__3225
OpenSC/OpenSC
3,225
defect
21ba386091b6d8e992439d6b04f577fe46d0e190
a6b14bf722fa19051a5df8cbe5a4caa54a165b4b
Fixes for uninitialized memory issues
37 new use-of-uninitialized-memory bugs were found while testing fuzzing harnesses. The bugs were found in these functions: - cac_read_file() - cardos_match_card() - sc_bin_to_hex() - strcmp(), from gids_get_identifiers() - do_select() - bcmp(), from cac_list_compare_path() - insert_cert() - cardos_lifecycle_ge...
diff --git a/src/libopensc/asn1.c b/src/libopensc/asn1.c index 08ef56149c2..548263a2daf 100644 --- a/src/libopensc/asn1.c +++ b/src/libopensc/asn1.c @@ -68,7 +68,7 @@ int sc_asn1_read_tag(const u8 ** buf, size_t buflen, unsigned int *cla_out, *buf = NULL; - if (left == 0 || !p) + if (left == 0 || !p || buflen == ...
5
5
3
[{"id": "G0", "claim": "The formatting nits Jakuje flagged should be cleaned up, though he could live without it.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Drop the explicit SW 9000 test in auth_select_aid because it is not certain 9000 is ...
null
OpenSC__OpenSC__3289
OpenSC/OpenSC
3,289
defect
9cb58e648d100c1ef068c4afe52114b288ebcff1
58599a75c1138f1638afe54ebf5e73f8d8473799
Add support for PKCS#11 URI option into pkcs11-tool
This PR adds new `--uri` option into `pkcs11-tool` according to [The PKCS #11 URI Scheme](https://www.rfc-editor.org/rfc/rfc7512.html). After parsing the URI string, it uses the already implemented `opt_*` variables for choosing module, slot/token, PIN and object. It does not yet support: - `file:` option for `pi...
diff --git a/doc/tools/pkcs11-tool.1.xml b/doc/tools/pkcs11-tool.1.xml index 9a04a861ad9..21c492cd088 100644 --- a/doc/tools/pkcs11-tool.1.xml +++ b/doc/tools/pkcs11-tool.1.xml @@ -741,6 +741,13 @@ <listitem><para>Specify the file containing the info for HKDF (optional)</para></listitem> </varlistentry> + ...
13
11
2
[{"id": "G0", "claim": "The attribute lookup tables in pkcs11_uri.c should use enums instead of numeric literals like {\"id\", 0} because the numbers are hard to read.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asked whether obj...
null
OpenSC__OpenSC__3316
OpenSC/OpenSC
3,316
defect
abb2e63cad19ef7100ba867f049c30f5a11d2b1a
cb871e5daf18aeca9ee38bfd6fbbcc947367c0c7
Fix error found when compiling with gcc 15
##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation is added or updated - [ ] New files have a LGPL 2.1 license statement - [ ] PKCS#11 module is tested
diff --git a/src/libopensc/card-epass2003.c b/src/libopensc/card-epass2003.c index 14d389a4306..df08d607a28 100644 --- a/src/libopensc/card-epass2003.c +++ b/src/libopensc/card-epass2003.c @@ -3050,7 +3050,7 @@ epass2003_erase_card(struct sc_card *card) 0x31,0x32,0x33,0x34, 0x35,0x36,0x37,0x38, 0x31,0x32,0x33,0x3...
2
2
1
[{"id": "G0", "claim": "The APDU will likely not expect the trailing null byte, so magic_pin needs the trailing null stripped from its sizeof-based length or to be defined explicitly without one.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pi...
null
OpenSC__OpenSC__3401
OpenSC/OpenSC
3,401
defect
e6ca5f8935c53edc64d8b41ea5ed3f43c4212552
def49aed71256d7fc143eaaf4ff2113fd742c735
piv_tool: Refactor the keygen cleanup
to avoid possible memory leaks reported by oss-fuzz https://issues.oss-fuzz.com/u/1/issues/397209407 ##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation is added or updated - [ ] New files have a LGPL 2.1 license statement - [ ] PKCS#11 module i...
diff --git a/src/tests/fuzzing/fuzz_piv_tool.c b/src/tests/fuzzing/fuzz_piv_tool.c index 05a8d87196b..9d5d7ca7785 100644 --- a/src/tests/fuzzing/fuzz_piv_tool.c +++ b/src/tests/fuzzing/fuzz_piv_tool.c @@ -57,7 +57,6 @@ void initilize_global() ctx = NULL; card = NULL; bp = NULL; - evpkey = NULL; opt_reader = NUL...
2
2
1
[{"id": "G0", "claim": "The refactoring of gen_key() should fix its return value so that, like other internal functions called from main(), it returns a small positive number instead of the negative values main() would print.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},...
null
OpenSC__OpenSC__3402
OpenSC/OpenSC
3,402
defect
e6ca5f8935c53edc64d8b41ea5ed3f43c4212552
91ab070311dd84622c4a09c1867a34d15a034d64
Coverity fixes
<!-- Thank you for your pull request. If this fixes a GitHub issue, make sure to have a line saying 'Fixes #XXXX' (without quotes) in the commit message. Mention which card(s) are used during testing. To get the name of your card, run this command: `opensc-tool -n` --> ##### Checklist <!-- Remove items th...
diff --git a/src/libopensc/compression.c b/src/libopensc/compression.c index 0e98689b0c8..5ad5aee06af 100644 --- a/src/libopensc/compression.c +++ b/src/libopensc/compression.c @@ -90,14 +90,9 @@ static int sc_compress_gzip(u8* out, size_t* outLen, const u8* in, size_t inLen) gz.next_out = out; gz.avail_out = (unsi...
1
1
0
[{"id": "G0", "claim": "The one-line conditional combining deflateInit2 and deflate is harder to read; keep the original multi-line structure and explicitly call deflateEnd() when deflateInit2 fails before returning the error.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
OpenSC__OpenSC__3442
OpenSC/OpenSC
3,442
defect
c32fd39d4bfd6fd9ff2dd92f1351ca45e1e176ff
3946c8fa8df3524f8ef9ee2d2a4d4c662a03c922
Fix Arm64 paths and improve NMake makefiles
<!-- Thank you for your pull request. If this fixes a GitHub issue, make sure to have a line saying 'Fixes #XXXX' (without quotes) in the commit message. Mention which card(s) are used during testing. To get the name of your card, run this command: `opensc-tool -n` --> ##### Checklist <!-- Remove items th...
diff --git a/configure.ac b/configure.ac index 9fa43c6f4ee..37c74b22fea 100644 --- a/configure.ac +++ b/configure.ac @@ -1099,6 +1099,7 @@ AC_DEFINE_UNQUOTED([OPENSC_VS_FF_COMMENTS], ["${OPENSC_VS_FF_COMMENTS}"], [OpenS AC_DEFINE_UNQUOTED([OPENSC_VS_FF_PRODUCT_NAME], ["${OPENSC_VS_FF_PRODUCT_NAME}"], [OpenSC version-i...
5
1
0
[{"id": "G0", "claim": "There is still an issue with the minidriver because the Calais registry is unified between x64 and arm64; maybe ARM64X could be used to resolve it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "minidriver.inf seems to be u...
null
OpenSC__OpenSC__3490
OpenSC/OpenSC
3,490
defect
be548cdd7f789a7c7fae48b43a2c0c8b064ec1eb
678d2b86f9b43a969f30c5b1c44261c2611b2925
Check if PIN is locked and hint CKF_USER_PIN_TO_BE_CHANGED
<!-- Thank you for your pull request. If this fixes a GitHub issue, make sure to have a line saying 'Fixes #XXXX' (without quotes) in the commit message. Mention which card(s) are used during testing. To get the name of your card, run this command: `opensc-tool -n` --> ##### Checklist <!-- Remove items th...
diff --git a/src/libopensc/card-esteid2025.c b/src/libopensc/card-esteid2025.c index a0f153dbc15..86b887b6365 100644 --- a/src/libopensc/card-esteid2025.c +++ b/src/libopensc/card-esteid2025.c @@ -148,9 +148,9 @@ esteid_compute_signature(sc_card_t *card, const u8 *data, size_t datalen, u8 *ou } static int -esteid_g...
3
1
0
[{"id": "G0", "claim": "The 'PIN needs to be changed' information should be associated with a specific PIN and could better be passed through the existing sc_pin_cmd_pin.logged_in mechanism (e.g. a new SC_PIN_STATE_NEEDS_CHANGE value, with logged_in possibly renamed to `state` and/or made a bitmask) instead of adding a...
null
OpenSC__OpenSC__3518
OpenSC/OpenSC
3,518
defect
c70be5a408e7d79c60bef5555240730af5f32804
26b224735447b4f1268f500b52d3ee14054821da
Fix fuzzing issues
Fixes: #3511, oss-fuzz issue and GHSA-72x5-fwjx-2459 ##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation is added or updated - [ ] New files have a LGPL 2.1 license statement - [ ] PKCS#11 module is tested - [ ] Windows minidriver is tested - [ ]...
diff --git a/src/libopensc/card-mcrd.c b/src/libopensc/card-mcrd.c index 31bf1e04028..4790caa182a 100644 --- a/src/libopensc/card-mcrd.c +++ b/src/libopensc/card-mcrd.c @@ -586,11 +586,11 @@ do_select(sc_card_t * card, u8 kind, } if (p2 == 0x04 && apdu.resplen > 2 && apdu.resp[0] == 0x62) { + if (apdu.resp[1] > ...
1
1
0
[{"id": "G0", "claim": "The indentation is broken — spaces are mixed with tabs in front of the `for` loop and the curly brackets in sc_compacttlv_find_tag(), and that should be fixed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
OpenSC__OpenSC__3524
OpenSC/OpenSC
3,524
defect
220bc82e08e71d720d742ce2e8713dc9af14dade
b7cd063080878c31bac3935e49636346d4493c9f
Fix external tests
This is reworking external tests to make their output reasonable. Also fixes outstanding coverity issue introduced from #3510. ##### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [ ] Documentation is added or updated - [ ] New files have a LGPL 2.1 license statem...
diff --git a/.github/setup-kryoptic.sh b/.github/setup-kryoptic.sh index 60a5fecf07d..5765b173703 100755 --- a/.github/setup-kryoptic.sh +++ b/.github/setup-kryoptic.sh @@ -5,5 +5,5 @@ if [ ! -d "kryoptic" ]; then git clone https://github.com/latchset/kryoptic.git fi pushd kryoptic -cargo build --features dynamic,s...
2
1
0
[{"id": "G0", "claim": "The pkcs11 def/exports file needs to be named pkcs11.exports.def so that the .exports.def rule is triggered as intended; as written, the pkcs11.def the PR generates is ignored (LNK4070: /OUT directive differs from the output filename).", "category": "correctness", "verdict": "opposed", "priority...
null
OpenSC__OpenSC__919
OpenSC/OpenSC
919
defect
dce379b43da00068fe788d79d35bbf7dec01e8da
490019e89872770f71e78523cf757116b485ce0a
code clean ups and simplifications
This is initial clean ups and simplifications for the code base. I'm planning to work on implementing a more extensive pkcs15 secret-key support.
diff --git a/src/libopensc/pkcs15.c b/src/libopensc/pkcs15.c index e56dc0f370e..74208f977ee 100644 --- a/src/libopensc/pkcs15.c +++ b/src/libopensc/pkcs15.c @@ -1388,26 +1388,16 @@ compare_obj_id(struct sc_pkcs15_object *obj, const struct sc_pkcs15_id *id) { void *data = obj->data; - switch (obj->type) { - case SC...
2
2
2
[{"id": "G0", "claim": "In compare_obj_path the newly added SC_PKCS15_TYPE_SKEY case casts obj->data to struct sc_pkcs15_prkey_info; it has to be struct sc_pkcs15_skey_info instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Applying the pull re...
null
OpenSauce__rustortion__133
OpenSauce/rustortion
133
defect
4d85c90c286d60b125e3943215cffd3fe8dc79b8
f32dc10846f708565e217ebf9b2f1c8bfd689bd7
Bypass samplers if 1x oversampling is set
Addresses #100 The raspberry pi was xrunning when either the IR cab or the up/downsampling was set. This is a workaround so if x1 oversampling is set we bypass the samplers completely until the performance issues are addressed. This makes x1 oversampling 95% faster.
diff --git a/src/audio/engine.rs b/src/audio/engine.rs index 3cb28ab..60a1352 100644 --- a/src/audio/engine.rs +++ b/src/audio/engine.rs @@ -72,6 +72,35 @@ impl Engine { return Ok(()); } + if self.samplers.get_oversample_factor() == 1.0 { + self.process_without_upsampling(input...
1
1
1
[{"id": "G0", "claim": "process_without_upsampling indexes output[i] without checking the output buffer size, so it will panic if output.len() < input.len(); add a length check or use a safer zip-based pattern like process_with_upsampling.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
OpenSauce__rustortion__173
OpenSauce/rustortion
173
defect
98fb42c2690ca2ae2850658af9153091952ce71f
389a8d77dd027fe3b0d773b39e1b846ae4d41432
feat: default to FIR only for impulse response convolution
Previously we were using two stage convolution, despite being faster in benchmarks using only FIR with a shorter impulse response length (limited to 50ms) produces better results and performance wise it seems to outperform two stage on the raspberry pi which is awesome. I've kept in the TwoStage implementation as an...
diff --git a/Cargo.toml b/Cargo.toml index b2d6b88..8b3086e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,6 @@ harness = false name = "engine" harness = false - [[bench]] name = "chain" harness = false @@ -50,7 +49,9 @@ harness = false name = "samplers" harness = false -# The profile that 'dist' will...
9
5
1
[{"id": "G0", "claim": "The comment on #[allow(clippy::large_enum_variant)] gives a misleading justification (enum dispatch performance) and should be corrected to describe the real trade-off or the variant boxed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
OpenSauce__rustortion__189
OpenSauce/rustortion
189
defect
c7f54f9e7191d7e42ee18acd5c08b823856cab4a
9cc99f8d31e1bd630acace6ef184bdba693fc5cc
feat: add pitch shifting
closes #63
diff --git a/presets/Clean.json b/presets/Clean.json index 86f7cbd..d1fa697 100644 --- a/presets/Clean.json +++ b/presets/Clean.json @@ -6,15 +6,13 @@ { "Filter": { "filter_type": "Highpass", - "cutoff_hz": 117.0, - "resonance": 0.0 + "cutoff_hz": 117.0 } }, { ...
6
3
2
[{"id": "G0", "claim": "The new pitch shifter module lacks unit tests; add tests verifying bypass behavior at 0 semitones, pitch shift accuracy for simple sine wave inputs, phase coherence, and that COLA normalization prevents amplitude modulation.", "category": "testing", "verdict": "uncertain", "priority": "P1", "sco...
null
OpenSauce__rustortion__215
OpenSauce/rustortion
215
defect
b7447f69056d295c077fb2b9c9e6d742b4b65dcc
4a072d1bb7bdc23388566e51703b2969eefd1f1e
fix: move IR loading off RT thread and drain engine messages (#213)
- Change `if let Ok` to `while let Ok` in handle_messages() to drain all pending messages per audio callback (BUG-7) - Move IR file I/O, resampling, and convolver construction to a background thread via new IrLoadService - IrCabinet is now lightweight (no loader, no file I/O) with a zero-allocation swap_convolver() f...
diff --git a/benches/common/mod.rs b/benches/common/mod.rs index adaae27..e5d5b36 100644 --- a/benches/common/mod.rs +++ b/benches/common/mod.rs @@ -1,5 +1,7 @@ use hound::{WavSpec, WavWriter}; -use rustortion::ir::cabinet::IrCabinet; +use rustortion::ir::cabinet::{ConvolverType, DEFAULT_MAX_IR_MS, IrCabinet}; +use ru...
7
2
1
[{"id": "G0", "claim": "`build_convolver` logs a `set_ir` failure and still returns the convolver, which is then sent to the engine; the failure should be propagated (or a safe fallback installed) so a broken convolver is not swapped in.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "i...
null
OpenSauce__rustortion__218
OpenSauce/rustortion
218
defect
7a8609135e8b6d476dc3f6cdd293741ca4fbeed8
274c8cbe00650ccb4b6966fdcf2f45ad65a0d7c1
fix: correct power amp sag, push-pull symmetry, and add sag_release
## Summary - **BUG-8**: Replace hand-rolled sag envelope with `EnvelopeFollower` from `common.rs`, correct time constants (10ms attack, 40-200ms release vs old 2ms/50ms) - **TUBE-1**: Make ClassAB/ClassB symmetric (even-harmonic cancellation from push-pull topology). ClassB gets wider crossover deadzone (0.25 vs 0.1)....
diff --git a/benches/chain.rs b/benches/chain.rs index 9daf566..8ee5afd 100644 --- a/benches/chain.rs +++ b/benches/chain.rs @@ -63,6 +63,7 @@ fn build_chain(sample_rate: f32) -> AmplifierChain { 0.5, PowerAmpType::ClassAB, 0.3, + 0.5, sample_rate, ))); chain.add_sta...
7
6
3
[{"id": "G0", "claim": "In PowerAmpStage::new, sag_release is clamped for storage but the envelope follower is initialized from the unclamped argument, so caller values outside 0..=1 can push the release time outside the intended 40-200ms range; clamp once into a local variable and use it for both.", "category": "corre...
null
OpenSauce__rustortion__238
OpenSauce/rustortion
238
defect
f10a64fe4650e96dc7ce3dd2d5538406ea439fc1
2eefd69839b94a4687be21d06e2cb69c34196b94
feat: assert no allocations on the RT audio path
Closes #237. ## Summary - Adds `assert_no_alloc` (`warn_debug` feature) and a new `rustortion-core/tests/no_alloc.rs` (20 tests) that runs `Engine::process` inside an `assert_no_alloc` scope across all 10 stage types, both IR convolver implementations, and the full standalone-style engine. - Wraps the existing standal...
diff --git a/Cargo.lock b/Cargo.lock index 1e5a752..c820fe8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -233,6 +233,12 @@ dependencies = [ "libloading 0.8.9", ] +[[package]] +name = "assert_no_alloc" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55ca83137a482d61d...
5
5
3
[{"id": "G0", "claim": "The `does_not_allocate` names of `full_engine_does_not_allocate` and `pitch_shifter_does_not_allocate` are misleading: those paths still allocate (peak meter / pitch shifter) and only pass because engine.rs gates the calls with `permit_alloc`, so the test names read as if the RT allocation were ...
null
OpenTTD__OpenTTD__12923
OpenTTD/OpenTTD
12,923
defect
2eb3e77207f4cb5632ada3cd3ec12af948fa7315
cdffc6da66a8a50be02ddf2bb9a8f414c0f4cdd5
Codechange: Use std::variant for string parameters and prevent mixing string/numeric parameters.
<!-- Commit message: - Please use Feature / Add / Change / Fix for player-facing changes. E.g.: "Feature: My cool new feature". - Please use Feature / Add / Change / Fix followed by "[NewGRF]" or "[Script]" for moddable changes. E.g.: "Feature: [NewGRF] My cool new NewGRF addition". - Please use Codechange / Code...
diff --git a/src/error.h b/src/error.h index 0f1964fb807a0..f9480745f4b23 100644 --- a/src/error.h +++ b/src/error.h @@ -31,7 +31,7 @@ enum WarningLevel { class ErrorMessageData { protected: bool is_critical; ///< Whether the error message is critical. - std::vector<StringParameterBackup> params; ///<...
4
4
0
[{"id": "G0", "claim": "The newly added error messages misspell 'parameter' as 'paarameter' and should read 'Attempt to read string parameter as integer' / 'Attempt to read integer parameter as string'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
OpenTTD__OpenTTD__13499
OpenTTD/OpenTTD
13,499
defect
4cda9f900d5bf12ae4c88f5c2859d64a0d6fc972
4bc347844b35ae51ebf5cfd294861b20ecc7c14b
Codechange: Change internal format of encoded strings to improve robustness and allow expansion.
<!-- Commit message: - Please use Feature / Add / Change / Fix for player-facing changes. E.g.: "Feature: My cool new feature". - Please use Feature / Add / Change / Fix followed by "[NewGRF]" or "[Script]" for moddable changes. E.g.: "Feature: [NewGRF] My cool new NewGRF addition". - Please use Codechange / Code...
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index bf8c27982a138..673f406f7572b 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -909,23 +909,74 @@ static inline size_t SlCalcStdStringLen(const void *ptr) /** - * Scan the string for old values of SCC_ENCODED and fix i...
4
4
0
[{"id": "G0", "claim": "The stray else before the `if (needtype)` branch after the record-separator check should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new local variables in FixSCCEncoded should separate words with under...
null
OpenTTD__OpenTTD__13646
OpenTTD/OpenTTD
13,646
defect
718a45b8455c3f4636534e3da3db666a5db5beb5
cd7893e019d85f96c183abcc9117452b075a8a37
Codechange: remove SimpleSpriteAllocator
## Motivation / Problem The `SimpleSpriteAllocator` uses C-style memory management, and especially the usage in the OpenGL backend is less than ideal with the emplacement `new` and manually calling of the destructor. ## Description Do not actually use the `SpriteAllocator` any more for allocating the `OpenGL...
diff --git a/src/spritecache.cpp b/src/spritecache.cpp index 66683692dcf8c..a4eeb809ac774 100644 --- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -887,14 +887,6 @@ void *CacheSpriteAllocator::AllocatePtr(size_t mem_req) } } -/** - * Sprite allocator simply using malloc. - */ -void *SimpleSpriteAllocator::All...
3
3
0
[{"id": "G0", "claim": "The cursor cache need not store pointers; since this is the only user of LRUCache it could store the item itself instead of a pointer to it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Encoding an OpenGLSprite and returning i...
null
OpenTTD__OpenTTD__13654
OpenTTD/OpenTTD
13,654
defect
1b6a77a19068cff25a2323884cdebec9d395c5b4
b7703972ef2aef9c220cc17ee6c561a04fd26194
Codechange: Use EncodedStrings for News messages.
<!-- Commit message: - Please use Feature / Add / Change / Fix for player-facing changes. E.g.: "Feature: My cool new feature". - Please use Feature / Add / Change / Fix followed by "[NewGRF]" or "[Script]" for moddable changes. E.g.: "Feature: [NewGRF] My cool new NewGRF addition". - Please use Codechange / Code...
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index 9914e931323a4..c0162d4ecc154 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -1335,18 +1335,17 @@ static void CrashAirplane(Aircraft *v) CreateEffectVehicleRel(v, 4, 4, 8, EV_EXPLOSION_LARGE); uint victims = v->Crash(); - SetDParam(0, ...
5
5
2
[{"id": "G0", "claim": "The hostile-takeover branch passes three parameters to GetEncodedString while STR_NEWS_MERGER_TAKEOVER_TITLE only has two parameters.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "GetEncodedString is given the victims parame...
null
OpenTTD__OpenTTD__13953
OpenTTD/OpenTTD
13,953
defect
2ae84f3c9eb49488298dc3b0e8e079a1ee84ffb3
3ee19286a596c3caaa06d0f50d4017cc78d6d592
Add Utf8View to simplify iterating over UTF-8 data with bounds checking
## Motivation / Problem Split from #13943. `Utf8Encode`, `Utf8Consume` and `Utf8Decode` do not do bounds checking. ## Description * Add bounds-checked functions `EncodeUtf8` and `DecodeUtf8`. * Add `Utf8View` for const-iterating over UTF-8 data. * The new stuff is used in places, where no specific error h...
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 85ed8222a52a6..7177ad3224098 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -24,4 +24,6 @@ add_files( smallstack_type.hpp container_func.hpp strong_typedef_type.hpp + utf8.cpp + utf8.hpp ) diff --git a/src/...
3
2
0
[{"id": "G0", "claim": "GetIterAtByte should avoid an `else` block after the early return, because the else suggests a continuing code path that does not exist when the true branch returns.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The iter...
null
OpenTTD__OpenTTD__13965
OpenTTD/OpenTTD
13,965
defect
4e4f413913cd334b9b4bbfc2ba00f5678da4e7d2
4c32ebcccb41330c2d3da4c5ad5a8175f3cafd79
Replace Utf8Encode and other C-style string construction with bounds checking StringBuilder class
## Motivation / Problem Split from #13943. There are currently many ways to build strings: * `StringBuilder` in `strings_internal.h`. * `Buffer` in `strgen_base.cpp`. * Overwriting bytes in char buffers with `Utf8Encode` without bounds checks. * `Utf8Encode` into `std::ostreambuf_iterator` into `std::stringst...
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 7177ad3224098..c14d10bf39581 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -3,6 +3,7 @@ add_files( backup_type.hpp base_bitset_type.hpp bitmath_func.hpp + container_func.hpp convertible_through_base.hpp ...
2
2
0
[{"id": "G0", "claim": "In WriteLang, the added declaration should use `const std::string &cmdp` instead of `const std::string& cmdp`, matching the codebase's reference-style convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The backup ...
null
OpenTTD__OpenTTD__13999
OpenTTD/OpenTTD
13,999
defect
131b7c71229aa96aaf7a53105cc4bfc4b6600a3c
73c8fc12b804d2c919992baf37a797a3b83db37a
Use StringConsumer for string validation in StrMakeValid and StrValid.
## Motivation / Problem Split from https://github.com/OpenTTD/OpenTTD/pull/13943. See motivation there. ## Description Switch `StrMakeValid` and `StrValid` to use `StringConsumer`. There is also a specialized InPlaceReplacement class, which provides a coupled Consumer and Builder instance: The Builder is c...
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index d21ea8da92406..448090585dd95 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -27,6 +27,8 @@ add_files( string_builder.hpp string_consumer.cpp string_consumer.hpp + string_inplace.cpp + string_inplace.hpp ...
1
1
0
[{"id": "G0", "claim": "In StrMakeValid, the first two branches with identical bodies should be collapsed by folding the AllowNewline newline condition into the first if (or alternatively split into three separate branches) for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "sco...
null
OpenTTD__OpenTTD__14049
OpenTTD/OpenTTD
14,049
defect
26de3404a442237c47914c6df82792b2cd80068d
d6b716e20b7fc501a94eebcbcceab5d4e2386c09
Fix #14044: Negative string parameters from GS were rendered as zero.
## Motivation / Problem * String parameters are always stored as `uint64_t`. * Negative values are sign-extended to `int64_t` and then casted to `uint64_t`. * The same applies to encoded strings. * But `ScriptText` did it different, and encoded them as `int64_t`. Funnilly the old `strtoull` did not care, parse...
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index d6f2536f67c0c..51482a6153fe7 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -981,6 +981,43 @@ void FixSCCEncoded(std::string &str, bool fix_code) str = std::move(result); } +/** + * Scan the string for SCC_ENCODED_N...
1
1
0
[{"id": "G0", "claim": "The new SLV_FIX_SCC_ENCODED_NEGATIVE enum entry's doc comment should read 353 with a PR#14049 reference instead of duplicating 352 and leaving a bare placeholder 'PR#'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
OpenTTD__OpenTTD__14134
OpenTTD/OpenTTD
14,134
defect
794ba1f5dadf145d79c1ec76b860356be7f866c4
f0409aa9bc701d3927fddae1973754c9a96ec1fb
Codechange: replace more std::string_view in network code
## Motivation / Problem C-style strings. ## Description Rewrite packet data transfer functions to just use `std::span` to pass buffers around. This means a significant rewrite, but it simplifies the code and requires fewer `const char*`s. Also replace a number of single `const char *`s with `std::string_v...
diff --git a/src/network/core/os_abstraction.h b/src/network/core/os_abstraction.h index f4d090bbd691e..0b4abc0fcf9bd 100644 --- a/src/network/core/os_abstraction.h +++ b/src/network/core/os_abstraction.h @@ -141,4 +141,22 @@ NetworkError GetSocketError(SOCKET d); static_assert(sizeof(in_addr) == 4); ///< IPv4 addre...
2
2
0
[{"id": "G0", "claim": "The reviewer is surprised the compiler does not warn that the lambda parameter `buffer` shadows the member `buffer` reached through the captured `this`, i.e. the parameter should be renamed to avoid shadowing.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "i...
null
OpenTTD__OpenTTD__14190
OpenTTD/OpenTTD
14,190
defect
f4f05dea33a3537e831642ffa345946e38b1e361
9e2eb7c54b9b5b846af0445fd7dc2088957e1faf
Codechange: unify StrTrimView
## Motivation / Problem https://github.com/OpenTTD/OpenTTD/pull/14186#discussion_r2072110988 Or basically that there are three `StrTrim` variants that do roughly the same, but not quite. Why not just unify them? ## Description Replace `StrTrimInPlace(str)` with `str = StrTrimView(str)`, or trim the view bef...
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp index 54b8e7aa8c1e9..a2141080a177d 100644 --- a/src/console_cmds.cpp +++ b/src/console_cmds.cpp @@ -934,8 +934,7 @@ static bool ConClientNickChange(std::span<std::string_view> argv) return true; } - std::string client_name(argv[2]); - StrTrimInPlace(client...
1
1
1
[{"id": "G0", "claim": "Assigning a string from StrTrimView of itself (e.g. `server_name = StrTrimView(server_name)` and the other call sites changed the same way) is not valid; the pull request should keep StrTrimInPlace and make it use std::string::erase instead.", "category": "correctness", "verdict": "supported", "...
null
OpenTTD__OpenTTD__14264
OpenTTD/OpenTTD
14,264
defect
c8a336f760a3963b161d95d993851c0dd28ddb02
817409d0b0867250fad15eb5ce63a2d0f5872bbf
Change: Reflow text file content incrementally to avoid "hanging"
<!-- Commit message: - Please use Feature / Add / Change / Fix for player-facing changes. E.g.: "Feature: My cool new feature". - Please use Feature / Add / Change / Fix followed by "[NewGRF]" or "[Script]" for moddable changes. E.g.: "Feature: [NewGRF] My cool new NewGRF addition". - Please use Codechange / Code...
diff --git a/src/misc/CMakeLists.txt b/src/misc/CMakeLists.txt index f45fa069603b3..031ad3e0007c0 100644 --- a/src/misc/CMakeLists.txt +++ b/src/misc/CMakeLists.txt @@ -1,4 +1,5 @@ add_files( + alternating_iterator.hpp binaryheap.hpp dbg_helpers.cpp dbg_helpers.h diff --git a/src/misc/alternating_ite...
2
2
0
[{"id": "G0", "claim": "The constructor might be simpler if `position` were passed as a boolean `begin` and the position calculated from that instead of being passed in.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Maybe the test's hand-written compari...
null
OpenTTD__OpenTTD__14384
OpenTTD/OpenTTD
14,384
defect
56942a15c704a7c3fff40e2aedf86eef47249394
c677c40d53bb6a595a029b3263d10e640195ab40
Change: Extend industry cargo history to cover quarters and years.
<!-- Commit message: - Please use Feature / Add / Change / Fix for player-facing changes. E.g.: "Feature: My cool new feature". - Please use Feature / Add / Change / Fix followed by "[NewGRF]" or "[Script]" for moddable changes. E.g.: "Feature: [NewGRF] My cool new NewGRF addition". - Please use Codechange / Code...
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index f94c1bd159438..ccdff8f41bd1e 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -1711,7 +1711,7 @@ struct IndustryProductionGraphWindow : BaseCargoGraphWindow { transported.dash = 2; auto transported_filler = Filler{transported, &Industry::Produced...
2
2
0
[{"id": "G0", "claim": "The include guard in the new src/misc/history.cpp is unnecessary because include guards are not needed for non-header files.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should not include ../stdafx.h f...
null
OpenTrafficCam__OTVision__408
OpenTrafficCam/OTVision
408
defect
c1b40a324d811f096da19c90db945813f67ff34f
7373f8e320f84ecfe9e522ad33b015ef58aecd2e
task/6786-allow-otvision-to-process-only-a-part-of-a-video
Add support for frame range detection in videos This pull request adds the ability to specify a start and end frame for object detection in videos. Users can now customize the detection process to focus on specific frames, enhancing efficiency and flexibility. OP#6786
diff --git a/OTVision/detect/detect.py b/OTVision/detect/detect.py index dad9b641..a9cef54c 100644 --- a/OTVision/detect/detect.py +++ b/OTVision/detect/detect.py @@ -51,6 +51,8 @@ def main( expected_duration: timedelta, filetypes: list[str] = CONFIG[FILETYPES][VID], overwrite: bool = CONFIG[DETECT][OVER...
1
1
0
[{"id": "G0", "claim": "Remove the comment inside convert_seconds_to_frames asking whether fps can be assumed an integer and whether the result needs rounding (see reviewer's answer in OP).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
OpenVADL__openvadl__550
OpenVADL/openvadl
550
defect
ab605432b31005463cb154274cb9b30a91406ff0
56547a1ff552b07d4b4c88958c47d6e221703fc8
asm: Add assembler specification for VarRisc
This PR adds an assembler specification for the VarRisc architecture and tests it with LLVMs FileCheck tool. Notes: - This assembler is for the VarRisc version where instructions have suffixes according to their length (e.g., `_L`). - Also contained in this PR are fixes for various bugs that surfaced while trying ...
diff --git a/sys/v-risc b/sys/v-risc new file mode 120000 index 000000000..22fb1e62e --- /dev/null +++ b/sys/v-risc @@ -0,0 +1 @@ +../vadl/test/resources/testSource/sys/v-risc/ \ No newline at end of file diff --git a/sys/v-risc/ABI.vadl b/sys/v-risc/ABI.vadl deleted file mode 100644 index 4d3013371..000000000 --- a/sy...
1
1
0
[{"id": "G0", "claim": "The reviewer asks the author to justify why the Riscv32 parser and code-emitter FileCheck test classes were touched and rewritten in this pull request.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
OpenVADL__openvadl__790
OpenVADL/openvadl
790
defect
e63edec650bbf231236f39fc354fac33088633d8
95245b571bceb34afb2fc9038d41be8a77c9ec10
rtl: Implement dev-container setup for generated RTL project
Introduces a Devcontainer setup, which is based on the same docker image used in the integration/docker-based tests. It allows reusing the toolchains provided in the test-base image, and easy IDE support for the generated Chisel/Scala Project with IntelliJ Idea. --- <img width="921" height="653" alt="Screenshot 2...
diff --git a/vadl/main/resources/templates/rtl/.devcontainer/devcontainer.json b/vadl/main/resources/templates/rtl/.devcontainer/devcontainer.json new file mode 100644 index 000000000..e6484a48c --- /dev/null +++ b/vadl/main/resources/templates/rtl/.devcontainer/devcontainer.json @@ -0,0 +1,15 @@ +{ + "name": "rtl (ba...
2
2
1
[{"id": "G0", "claim": "The docker-compose image reference in the generated project's template should be parameterized so that it always matches the version of the image used in the CI.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "An issue should ...
null
OpenVADL__openvadl__854
OpenVADL/openvadl
854
defect
732888d6e92ff29ba51f7d391eeff12983e04955
b000f7489bf24b1ac618b8c86c52d66d6d9d0d23
testing: Fix tests and refactor Dockerfile for cosim dependencies
This PR fixes the cosim ppc64 instruction tests executed on OrbStack. It also optimizes the cosim build process by using `cargo chef`. It also fixes the build kit daemon startup.
diff --git a/docker/iss/test-base/Dockerfile b/docker/iss/test-base/Dockerfile index d3efbe75d..5f4e107a5 100644 --- a/docker/iss/test-base/Dockerfile +++ b/docker/iss/test-base/Dockerfile @@ -39,15 +39,8 @@ RUN mkdir build RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y ENV PATH=/root/.ca...
2
1
1
[{"id": "G0", "claim": "Excluding \"target\" from the copied vadl-cosim directory may also exclude the build cache.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The buildkit client in DockerRiscvImageProvider must connect on port 1334 (the buildkit ...
null
OpenVADL__openvadl__912
OpenVADL/openvadl
912
defect
c678e705ae0d797d608f2fc3868a6b7fe8b3f09b
6b1ba4c26283b569d9c008071696266e57559647
frontend: Group type checking and VIAM lowering
- Extend the type checker to check operation groups - Introduce VIAM group definition
diff --git a/vadl/main/vadl/ast/Group.java b/vadl/main/vadl/ast/Group.java index 5130cf863..8274dede7 100644 --- a/vadl/main/vadl/ast/Group.java +++ b/vadl/main/vadl/ast/Group.java @@ -16,17 +16,23 @@ package vadl.ast; +import com.google.errorprone.annotations.concurrent.LazyInit; import java.util.List; import j...
5
5
1
[{"id": "G0", "claim": "The `equals` (and hashCode) overrides on the VIAM Group expression definitions should be removed, since VIAM definitions are identified by object identity, and any equality-matching logic should live in a separate method like `matches` instead.", "category": "design", "verdict": "supported", "pr...
null
OpenVADL__openvadl__921
OpenVADL/openvadl
921
defect
17f483ebd5e1ce5109ed10741ea9dde3d9cf86b9
c9d563237e3ec6a0b41ef25ae4f3708787938bb1
iss: Add benchmark workflow for embench
This PR adds dedicated ISS Embench benchmark execution classes. Additionally, it adds (and refactors) the benchmark publication to Resselpark.
diff --git a/.github/workflows/benchmark-iss.yml b/.github/workflows/benchmark-iss.yml new file mode 100644 index 000000000..3374383cb --- /dev/null +++ b/.github/workflows/benchmark-iss.yml @@ -0,0 +1,53 @@ +name: benchmark ISS + +on: + workflow_dispatch: + push: + branches: + - master + paths: + - '...
1
1
1
[{"id": "G0", "claim": "The reusable publish workflow's dmnemec/copy_file_to_another_repo_action step will not work on ARM (self-hosted-arm64) runners because the action is a container action that requires Linux x64.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
OpenXRay__xray-16__666
OpenXRay/xray-16
666
defect
a2896a3ba119f95c18f4310ea1631faa1ca4f2ca
dfb280a87e17d6e355e83bad52cca3dd31ecb40e
PVS-Studio static analyzer warning fixes (part 2)
Part 2 of fixes by PVS-Studio static analyzer tool.
diff --git a/Externals/NVTT/src/nvimage/Filter.cpp b/Externals/NVTT/src/nvimage/Filter.cpp index 43c9ef72d54..e5455718b12 100644 --- a/Externals/NVTT/src/nvimage/Filter.cpp +++ b/Externals/NVTT/src/nvimage/Filter.cpp @@ -297,7 +297,7 @@ Kernel1::Kernel1(const Filter & f, int iscale, int samples/*= 32*/) /// Dtor. Ker...
9
9
0
[{"id": "G0", "claim": "Write the array delete as `delete[] m_data;` without the space in the Kernel1 and Kernel2 destructors.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `Equals` return line added in ColorMappingParams is misindented and...
null
OpenZeppelin__contracts-wizard__587
OpenZeppelin/contracts-wizard
587
defect
47c69f9043a739d47a819f5f547b68b97ab451b4
5e3d6da8c77ca159abe622c49463a5f8e48c8e1d
Use stellar scaffold cli upgrade command in setup script
## Stellar ## Summary Use stellar scaffold cli upgrade command in setup script that is zip in the downloadable for stellar scaffold project ### Description The current setup script that is zip under the downloadable Scaffold project and used to set the project as such, uses the `init` command and then manipulat...
diff --git a/packages/core/stellar/src/zip-rust.ts b/packages/core/stellar/src/zip-rust.ts index 788e8b58a..b3699b2ff 100644 --- a/packages/core/stellar/src/zip-rust.ts +++ b/packages/core/stellar/src/zip-rust.ts @@ -41,7 +41,7 @@ Continue your development journey with [Stellar CLI](https://github.com/stellar/ - See [...
2
2
0
[{"id": "G0", "claim": "The scaffold README text should read 'a script that initiates a Stellar Scaffold project' instead of 'a script that initiate a Stellar Scaffold project'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The stellarDependenc...
null
OpenZeppelin__openzeppelin-monitor__203
OpenZeppelin/openzeppelin-monitor
203
defect
6a55e9d9dcde79c7ccb2ee9dadd9675a206e7014
a8d857ba95d808e3d4a9f449ab4e8f758c2b223e
fix: Monitor match template var signature collission (breaking)
# Summary **This is a breaking change**: It requires reformatting template variables in config files. https://linear.app/openzeppelin-development/issue/PLAT-6582/fix-signature-match-key-collission This PR fixes https://github.com/OpenZeppelin/openzeppelin-monitor/issues/201. When processing monitor matches ...
diff --git a/Cargo.lock b/Cargo.lock index 8014f514c..4777c42f0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -430,7 +430,7 @@ dependencies = [ "itoa", "serde", "serde_json", - "winnow 0.7.7", + "winnow 0.7.8", ] [[package]] @@ -581,7 +581,7 @@ dependencies = [ "const-hex", "derive_more 2.0.1", "foldhash"...
1
1
0
[{"id": "G0", "claim": "The four primitive match arms in flatten_json_path (String/Number/Bool/Null) could be grouped so the code is shorter and result.insert is written only once, reducing duplicated code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
OpenZeppelin__openzeppelin-monitor__431
OpenZeppelin/openzeppelin-monitor
431
defect
cd70e9f8dd8d82b935ec1783f240fd7dcee48a34
4e4dfc04c377ad2a6cb6c471a5fffd5815cf95b4
feat(solana): add account and fee payer filtering
- Adds `fee_payer` parameter to filter transactions by who paid for them - Adds `accounts` parameter to filter by specific accounts involved in the transaction - Extends `build_transaction_params()` in `filter.rs` to include both new fields ## Changes - Added `fee_payer()` and `accounts()` methods to `Transacti...
diff --git a/src/models/blockchain/solana/transaction.rs b/src/models/blockchain/solana/transaction.rs index dfc10fcb4..e21b983de 100644 --- a/src/models/blockchain/solana/transaction.rs +++ b/src/models/blockchain/solana/transaction.rs @@ -245,6 +245,16 @@ impl Transaction { }) .collect() } + + /// Get the f...
6
5
3
[{"id": "G0", "claim": "Storing `accounts` as a comma-separated string makes the `contains` operator do substring matching, so an expression like `accounts contains \"ABC123\"` can also match partial account keys; the reviewer asks to use a different separator or a JSON array to enable element-based matching.", "catego...
null
OpenZeppelin__openzeppelin-monitor__442
OpenZeppelin/openzeppelin-monitor
442
defect
26eb9db747920e40b74ab66aabab97362b47b33c
9abb6579779ebbf74d14d5a06ec5c8c64141911e
feat: Add more metrics to Prometheus
# Summary Add Prometheus metrics for RPC operations to enable alerting and monitoring of blockchain RPC health. Previously, RPC errors like 429 rate limits were only visible in logs, making it difficult to set up proactive alerting in an institutional setup. ### New Metrics | Metric | Type | Labels | Purpose |...
diff --git a/src/services/blockchain/transports/http/endpoint_manager.rs b/src/services/blockchain/transports/http/endpoint_manager.rs index 225831280..911067822 100644 --- a/src/services/blockchain/transports/http/endpoint_manager.rs +++ b/src/services/blockchain/transports/http/endpoint_manager.rs @@ -6,6 +6,7 @@ use...
3
2
2
[{"id": "G0", "claim": "The full URL passed to record_rate_limit can expose API keys and create unbounded label cardinality; extract and use only the hostname or a configured alias instead.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "record_rpc_requ...
null
OpenZeppelin__openzeppelin-monitor__480
OpenZeppelin/openzeppelin-monitor
480
defect
36b360c7f1159d80c95e47233be891ac5d9bcc33
e42d2d8088baf436f61da754a73fc1d4bda7c93f
feat: Rotate and track JSON-RPC error envelopes
# Summary - Detect JSON-RPC error envelopes (HTTP 200 + `{"error":{...}}`) in the HTTP endpoint manager and rotate to a fallback instead of bubbling up `Missing 'result' field`. Fixes the silent failure observed on multiple RPCs in our production setup. ...
diff --git a/src/services/blockchain/transports/error.rs b/src/services/blockchain/transports/error.rs index bef273b50..d33f1db28 100644 --- a/src/services/blockchain/transports/error.rs +++ b/src/services/blockchain/transports/error.rs @@ -32,6 +32,16 @@ pub enum TransportError { /// URL rotation error #[error("UR...
9
8
3
[{"id": "G0", "claim": "The new tracing::warn! paths log the full RPC URL, which can carry provider credentials, so they should log a sanitized host label instead.", "category": "security", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "If every endpoint returns the same JSON-R...
null
OpenZeppelin__openzeppelin-relayer__599
OpenZeppelin/openzeppelin-relayer
599
defect
47169872ef950937f8fd6a7df298b7bad2c53ff3
24d7a94679da6c3a484f989f6d072f30700db307
fix: Adding coverage report for integration tests
# Summary This PR adds code coverage collection infrastructure for integration tests using LLVM coverage tools, laying the groundwork for comprehensive coverage reporting across all test types (unit, AI, dev, properties, and integration tests). - Set up LLVM-based coverage instrumentation in the integration tes...
diff --git a/.github/codecov.yml b/.github/codecov.yml index b941f3bbe..0fc36bef7 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -29,6 +29,11 @@ flags: paths: - src/ carryforward: true + integration: + paths: + - src/ + carryforward: true + informational: true comment: ...
3
1
1
[{"id": "G0", "claim": "The LLVM_COV and LLVM_PROFDATA paths are hardcoded to aarch64-unknown-linux-gnu toolchain paths, so coverage collection will fail on x86_64 systems such as the GitHub Actions ubuntu-latest runners because the tools will not be found at those paths.", "category": "correctness", "verdict": "suppor...
null