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
FreeRDP__FreeRDP__11132
FreeRDP/FreeRDP
11,132
defect
f06ac283878fec3d4d53cf5d517147fff023b6c7
0f5b2b80479c0f7ab597b80b52d8ddff3c71acf8
[channel,rdpecam] support Logitech UVC H.264 stream mux payload
To request and demux H.264 stream from MJPEG container stream, supported by some Logitech cameras such as C930e and C925e. These cameras don't directly advertise H.264 format via `v4l2-ctl --list-formats`, but follow so called UVC H.264 video payload specification: [USB_Video_Payload_H 264_1 0.pdf](https://github.co...
diff --git a/channels/rdpecam/client/camera.h b/channels/rdpecam/client/camera.h index c0c167db33925..e6dc3f8e95df9 100644 --- a/channels/rdpecam/client/camera.h +++ b/channels/rdpecam/client/camera.h @@ -60,6 +60,12 @@ */ #define ECAM_SAMPLE_RESPONSE_BUFFER_SIZE (1024ULL * 4050ULL) +/* Special format addition for...
12
12
6
[{"id": "G0", "claim": "The quoted `#include \"camera.h\"` in the v4l sources cannot be resolved (clang-tidy: file not found); it should be `\"../camera.h\"`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "camera_v4l.h uses size_t, BOOL, HANDLE,...
null
FreeRDP__FreeRDP__11293
FreeRDP/FreeRDP
11,293
defect
95d3389d31dfc504b6b0480ea13ccde3ba2b8105
885b0b751cd1ecea85da63c7e4c191cc88372d57
Prerelease v3
* Add some logging for previously unused variables * Add some checks previously skipped * Use `c99` compatible declaration of `WCHAR` constants.
diff --git a/channels/drive/client/drive_file.c b/channels/drive/client/drive_file.c index 319c86360cb4..cac5682b0ae5 100644 --- a/channels/drive/client/drive_file.c +++ b/channels/drive/client/drive_file.c @@ -503,6 +503,8 @@ static BOOL drive_file_query_from_handle_information(const DRIVE_FILE* file, default: ...
1
1
1
[{"id": "G0", "claim": "The added line `CompletionId = Stream_Get_UINT32(s, );` has a stray comma making it an invalid expression, so the file does not compile (clang-tidy: expected expression).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
FreeRDP__FreeRDP__11363
FreeRDP/FreeRDP
11,363
defect
13cacd5010d7e909abc0fb8519dbf54a01c84845
c07c4179a53a89f0793c77747a387a96ee9d809b
[client,x11] add <ctrl>+<alt>+d shortcut
allow immediate disconnect of a session with a keyboard shortcut. (just like sdl client has)
diff --git a/client/SDL/SDL3/sdl_kbd.cpp b/client/SDL/SDL3/sdl_kbd.cpp index 86e16524f8d3..90240961f51d 100644 --- a/client/SDL/SDL3/sdl_kbd.cpp +++ b/client/SDL/SDL3/sdl_kbd.cpp @@ -361,33 +361,77 @@ BOOL sdlInput::keyboard_set_indicators(rdpContext* context, UINT16 led_flags) BOOL sdlInput::keyboard_set_ime_status(r...
4
3
0
[{"id": "G0", "claim": "clang-tidy warns that the local variable 'rdp_scancode' is not initialized and suggests an explicit initializer.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The static map should be directly initialized once with its con...
null
FreeRDP__FreeRDP__11371
FreeRDP/FreeRDP
11,371
defect
f2a010fd2be8177fb2f0100fd6de6a653bb1f8ce
179c231ca1fb8a2f7d15ebf25b66e20032ef5852
[client,common] make all azure settings configurable
remove hard coded azure URL: * All options can now be set with `/azure:foo:bar, ...`
diff --git a/client/common/client.c b/client/common/client.c index 23f719c965b5..29ccba83f100 100644 --- a/client/common/client.c +++ b/client/common/client.c @@ -1042,9 +1042,22 @@ static BOOL client_cli_get_rdsaad_access_token(freerdp* instance, const char* sc freerdp_settings_get_string(instance->context->sett...
1
1
1
[{"id": "G0", "claim": "In parse_aad_options the amap initializer is missing the closing '}' and comma between the \"avd-token:\" and \"avd-scope:\" entries, so clang-tidy reports 'expected }' (clang-diagnostic-error) at the added line.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "in...
null
FreeRDP__FreeRDP__11384
FreeRDP/FreeRDP
11,384
defect
aa2c7a9ccb68438749307b244793fb6c41e1f3f8
c728f3744a2327866144b6d52d826a225def782b
Rel mouse change
@pnowack ok, adjusted the behavior to only send relative if it is enabled in the client and there is no cursor visible.
diff --git a/client/SDL/SDL3/sdl_freerdp.cpp b/client/SDL/SDL3/sdl_freerdp.cpp index 73d2818fa532..d2662854d4dd 100644 --- a/client/SDL/SDL3/sdl_freerdp.cpp +++ b/client/SDL/SDL3/sdl_freerdp.cpp @@ -988,12 +988,14 @@ static int sdl_run(SdlContext* sdl) break; case SDL_EVENT_USER_POINTER_NULL: SDL_HideC...
4
3
1
[{"id": "G0", "claim": "The setHasCursor declaration should name its parameter the same as its definition (cursor vs val).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "hasCursor() should be marked [[nodiscard]].", "category": "maintainability"...
null
FreeRDP__FreeRDP__11734
FreeRDP/FreeRDP
11,734
defect
20686345da8e0dc21833b890fd3f59570edda2bd
79495e0d020cd7c94b8713b1bb4db1e3ef726c9c
winpr: re-introduce the credentials module
The credential module from FreeRDP2 was removed, but sometime you still need to have support for `Cred[Marshal|Unmarshal]Credential` especially when it's a smartcard logon and that the cert sha1 is encoded using these functions.
diff --git a/winpr/include/winpr/cred.h b/winpr/include/winpr/cred.h index 0c7ce8fee78b..7b001e75ec93 100644 --- a/winpr/include/winpr/cred.h +++ b/winpr/include/winpr/cred.h @@ -19,17 +19,18 @@ #ifndef WINPR_CRED_H_ #define WINPR_CRED_H_ -#include <winpr/winpr.h> - #ifdef _WIN32 #include <wincred.h> #else +#i...
6
4
0
[{"id": "G0", "claim": "The new struct and enum typedef declarations in winpr/include/winpr/cred.h use reserved identifiers (leading underscore followed by an uppercase letter, e.g. _CREDENTIAL_ATTRIBUTEA through _CRED_PROTECTION_TYPE) and should be renamed to drop the leading underscore.", "category": "correctness", "...
null
FreeRDP__FreeRDP__11851
FreeRDP/FreeRDP
11,851
defect
abdd85bcbd114d5c70632b30c0094bae9959329b
3e3183ee4078270edb342af8f458c6c07ed1544e
rdpecam: add some new callbacks to the HAL
This patch adds Activate and Deactivate callbacks to the HAL, matching the messages exchanged on the channel. This is to prepare the support of a windows HAL using the microsoft media fundation framework. It also documents the HAL's functions.
diff --git a/channels/rdpecam/client/camera.h b/channels/rdpecam/client/camera.h index 68282f28fbb4..6659834413f0 100644 --- a/channels/rdpecam/client/camera.h +++ b/channels/rdpecam/client/camera.h @@ -153,20 +153,85 @@ typedef UINT (*ICamHalEnumCallback)(CameraPlugin* ecam, GENERIC_CHANNEL_CALLBACK typedef UINT (*IC...
1
1
1
[{"id": "G0", "claim": "The new 'errorCode' locals in ecam_dev_process_activate_device_request and ecam_dev_process_deactivate_device_request are declared without an initializer (clang-tidy cppcoreguidelines-init-variables) and should be initialized to 0, as the suggestion blocks propose.", "category": "correctness", "...
null
FreeRDP__FreeRDP__11892
FreeRDP/FreeRDP
11,892
defect
d1d39493c3856741818c4fb9473f59ed81bb398f
98326f3e3a0d12f1a224044ab71fd12ad259810e
Azure domain
* Provide a default domain `AzureAD` if no domain was provided via `/d:domain` setting * Modify `freerdp_interruptible_get_line` so that a suggested value can be provided which can be edited. this way we can provide a sane default for (most) azure/entra setups while still allowing a user to override the defaults.
diff --git a/client/SDL/SDL3/dialogs/sdl_dialogs.cpp b/client/SDL/SDL3/dialogs/sdl_dialogs.cpp index 7bd71ab1e717..1525567a17b1 100644 --- a/client/SDL/SDL3/dialogs/sdl_dialogs.cpp +++ b/client/SDL/SDL3/dialogs/sdl_dialogs.cpp @@ -538,7 +538,6 @@ BOOL sdl_auth_dialog_show(const SDL_UserAuthArg* args) { const std::ve...
3
2
1
[{"id": "G0", "claim": "The pull request adds a duplicate #include <termios.h> in libfreerdp/utils/passphrase.c, which clang-tidy's readability-duplicate-include check flags.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In set_termianl_nonbloc...
null
FreeRDP__FreeRDP__11941
FreeRDP/FreeRDP
11,941
defect
672f7bec375c7a8a95a056f6939198b4382d7e3b
50865a4ff4f966fe51ac82ad73b4325f610897a3
Fix build and run with optional channels
This MRs addresses several build issues when specific channels are disabled, and also an issue at runtime to avoid loading channels disabled at build time. cc @hwti
diff --git a/channels/server/channels.c b/channels/server/channels.c index b684d7c1bb68..1e7c96ba78b8 100644 --- a/channels/server/channels.c +++ b/channels/server/channels.c @@ -41,20 +41,36 @@ #if defined(CHANNEL_AUDIN_SERVER) #include <freerdp/server/audin.h> #endif +#if defined(CHANNEL_RDPSND_SERVER) #include <...
1
1
1
[{"id": "G0", "claim": "The \"RDPEI support not compiled in\" warnings should tell users to recompile with -DCHANNEL_RDPEI_CLIENT=ON instead of -DWITH_CHANNELS=ON, since enabling WITH_CHANNELS alone is not enough, and the same wrong hint is copied in freerdp_handle_touch_up/down/motion.", "category": "correctness", "ve...
null
FreeRDP__FreeRDP__12028
FreeRDP/FreeRDP
12,028
defect
778097db7ca313b128a4dfc56e570ace44294ea8
8e29f3c9a11d60d61b2b981640d0fe07907b3bfe
drdynvc: implement compressed packet
The DRDYNVC compression is the zgfx compression, this patch adds the support for DYNVC_DATA_COMPRESSED and DYNVC_DATA_FIRST_COMPRESSED packets.
diff --git a/channels/drdynvc/client/drdynvc_main.c b/channels/drdynvc/client/drdynvc_main.c index ab1a65b3d562b..3d0bd31b9c984 100644 --- a/channels/drdynvc/client/drdynvc_main.c +++ b/channels/drdynvc/client/drdynvc_main.c @@ -29,6 +29,7 @@ #include <freerdp/freerdp.h> #include <freerdp/channels/drdynvc.h> #includ...
5
5
3
[{"id": "G0", "claim": "The clang analyzer warns that `if (shouldFree)` at the end of drdynvc_process_data_first may evaluate a garbage value, because the state != RUNNING path jumps to `out` before shouldFree is initialized.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},...
null
FreeRDP__FreeRDP__12031
FreeRDP/FreeRDP
12,031
defect
b971720115f181b7c76103be5ba2b3ebbf75ea1b
d903b27ea14d5daa4a70b54f3c2f78868b2050d6
Fix remote credential guard channel loading
This patch fixes the loading of the RCG channel. It also adds a guard so the `/remoteGuard` cmdline doesn't work if the channel is not built in.
diff --git a/client/common/cmdline.c b/client/common/cmdline.c index 352de99beecb..b0c0e5d77498 100644 --- a/client/common/cmdline.c +++ b/client/common/cmdline.c @@ -4862,6 +4862,10 @@ static int parse_command_line(rdpSettings* settings, const COMMAND_LINE_ARGUMENT } CommandLineSwitchCase(arg, "remoteGuard") ...
1
1
0
[{"id": "G0", "claim": "The remoteGuard handling when CHANNEL_RDPEAR_CLIENT is not compiled in should be restructured (the error block should be an else, otherwise the following code is dead) or, better, like the h264 options the command line option should not be compiled in at all.", "category": "design", "verdict": "...
null
FreeRDP__FreeRDP__12039
FreeRDP/FreeRDP
12,039
defect
c411b13370bfba5e9afae1829f0cad2baedf2e71
effc110417a31b8ea8e6ae68d55c9ae17161daa8
rdpear: handle basic NTLM commands and fix server-side
This patch adds the handling of basic NTLM commands. Because there's some mysterious 4 zero bytes after pickle header in Kerberos packets, not present in NTLM commands, the patch also had to rework a bit the packet parsing / forging. The patch also address a server-side bug when parsing supplemental creds, if the cl...
diff --git a/channels/rdpear/client/rdpear_main.c b/channels/rdpear/client/rdpear_main.c index 31b7cc25b676..9540b0825843 100644 --- a/channels/rdpear/client/rdpear_main.c +++ b/channels/rdpear/client/rdpear_main.c @@ -193,13 +193,13 @@ static krb5_error_code kerb_do_decrypt(krb5_context ctx, const KERB_RPC_ENCRYPTI }...
8
7
2
[{"id": "G0", "claim": "The variable 'v' should be initialized ('UINT32 v = 0;') instead of being declared uninitialized.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "On the error path where the encoder already failed, Stream_Free(s, TRUE) is call...
null
FreeRDP__FreeRDP__12107
FreeRDP/FreeRDP
12,107
defect
8771efb4bba0f5b169d219e1771f81f4b3b25a5c
a2493e9fc2cb99fa1036a43e277f02dea9d04e76
[core,freerdp] fix race in freerdp_abort_connect_context
When aborting a connection only notify the client thread. Let freerdp_disconnect handle sending server notifications.
diff --git a/client/X11/xf_client.c b/client/X11/xf_client.c index 854404e0ed798..d65a27d2e4cef 100644 --- a/client/X11/xf_client.c +++ b/client/X11/xf_client.c @@ -1554,6 +1554,7 @@ static BOOL handle_window_events(freerdp* instance) if (!xf_process_x_events(instance)) { WLog_DBG(TAG, "Closed from X11"); + fre...
1
1
1
[{"id": "G0", "claim": "In freerdp_disconnect the clang analyzer warns that field 'update' is accessed through a possibly null 'rdp' at update_cast(rdp->update), i.e. a potential null-pointer dereference (clang-analyzer-core.NullDereference).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
FreeRDP__FreeRDP__12111
FreeRDP/FreeRDP
12,111
defect
1b51752bbde1195744ba984d6b4f07b6d003a8bf
501f7c9dc0559c85974948a2f50c3a1439089826
[enum,cast] fix implicit enum casts
* check input value range if read from network * cast properly after value range is checked * fix wrong return values
diff --git a/channels/audin/server/audin.c b/channels/audin/server/audin.c index 73e5fbb5d1ff7..5046a7d6f27c7 100644 --- a/channels/audin/server/audin.c +++ b/channels/audin/server/audin.c @@ -81,7 +81,25 @@ static UINT audin_server_recv_version(audin_server_context* context, wStream* s, if (!Stream_CheckAndLogRequir...
2
1
1
[{"id": "G0", "claim": "Returning ERROR_INVALID_DATA when the rdpecam_valid_CamMediaFormat check fails in device_server_recv_media_type_list_response can leak the memory pointed to by MediaTypeDescriptions (clang-analyzer unix.Malloc warning).", "category": "correctness", "verdict": "supported", "priority": "P1", "scop...
null
FreeRDP__FreeRDP__12170
FreeRDP/FreeRDP
12,170
defect
e327d97c5901793227f0690a93fb5aa6cf61ecb7
840af28270514c729d0697dc3be955db2b7a79d3
[crypto] deprecate er and der modules
These are unused and not well tested, mark them deprecated to announce removal once FreeRDP 4 is released.
diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index ccb021d26b36..e5a449e4a1e9 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -140,6 +140,11 @@ cleaning_configure_file( ) file(GLOB_RECURSE PUBLIC_COMMON_HEADERS LIST_DIRECTORIES false "freerdp/*.h") +if (WITHOUT_FREERDP_3x_DEPRECA...
1
1
1
[{"id": "G0", "claim": "The declaration this PR adds to include/freerdp/crypto/er.h, `_er_skip_length(int length));`, carries a stray closing parenthesis that clang-tidy reports as a parse error (\"expected function body after function declarator\"), so the header fails to compile.", "category": "correctness", "verdict...
null
FreeRDP__FreeRDP__12433
FreeRDP/FreeRDP
12,433
defect
b809edc353928e5063ef0f0af9ae2a06b43886c0
05e86c52ee7136be7a5f5a8e74d73f569b0eee42
[client] Fix writing of gatewayusagemethod to .rdp files
When loading the gatewayusagemethod setting from a .rdp file we use `freerdp_settings_set_uint32` to set FreeRDP's gateway parameters (`GatewayEnable` and `GatewayBypassLocal`). However when writing settings back to a .rdp file we ignore these settings. This PR introduces `freerdp_get_gateway_usage_method` that will...
diff --git a/client/common/file.c b/client/common/file.c index ee269f7cd6db..d410c741ca47 100644 --- a/client/common/file.c +++ b/client/common/file.c @@ -1241,7 +1241,7 @@ BOOL freerdp_client_populate_rdp_file_from_settings(rdpFile* file, const rdpSett file->Compression = WINPR_ASSERTING_INT_CAST( UINT32, free...
2
2
1
[{"id": "G0", "claim": "Add WINPR_ATTR_NODISCARD to the newly added public getter freerdp_get_gateway_usage_method in include/freerdp/settings.h, so the public API warns when a getter is called uselessly.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "cl...
null
FreeRDP__FreeRDP__12471
FreeRDP/FreeRDP
12,471
defect
e59c7e1ab55d17a24301b590583252084d71613f
c64bb96f82c8a23b4295c4bc76a06c0752a86f73
[client,common] improve /p help
* allow /p to pass without argument * add help explaining how to silence interavctive password prompts
diff --git a/client/common/cmdline.c b/client/common/cmdline.c index dece289feb2a..1286074664a8 100644 --- a/client/common/cmdline.c +++ b/client/common/cmdline.c @@ -4969,6 +4969,10 @@ static int parse_command_line(rdpSettings* settings, const COMMAND_LINE_ARGUMENT } CommandLineSwitchCase(arg, "p") { + cons...
1
1
1
[{"id": "G0", "claim": "In the new \"/p\" switch case the value stored to the local `val` is never read (dead store), because the following call still passes `arg->Value` instead of `val`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
FreeRDP__FreeRDP__12594
FreeRDP/FreeRDP
12,594
defect
024191580f306406d141db2a3ff5d9dceb1eac52
b9e5ac493a61c12ceaf7300578c36595020e4d9c
fix: wfreerdp floatbar visibility
- Fixes #11048 Fix the Windows `wfreerdp` floatbar so it is repositioned correctly once the main window becomes visible.
diff --git a/client/Windows/wf_client.c b/client/Windows/wf_client.c index 35ff162f4993..346fea56c568 100644 --- a/client/Windows/wf_client.c +++ b/client/Windows/wf_client.c @@ -1156,6 +1156,10 @@ static DWORD WINAPI wf_client_thread(LPVOID lpParam) case WM_FREERDP_SHOWWINDOW: { ShowWindow(wfc->hwnd, S...
2
2
1
[{"id": "G0", "claim": "In wf_floatbar_reset_position the newly added function dereferences floatbar (computing y from floatbar->offset) before its own null checks, so move the y computation below the null checks to avoid a null dereference.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"...
null
FreeRTOS__FreeRTOS-Cellular-Interface__75
FreeRTOS/FreeRTOS-Cellular-Interface
75
defect
2411a7dcba686610778d7d0a369c39cc38a965f4
92df9a375aaba4f27f20e9b55d2edcbb4732f004
Fix sara r4 error msg
* **Filter empty line in pktio** SARA-R4 sends "\0\0" after reboot. These will be filter out in pktio and will not be regarded as AT_UNDEFINED message. * **Add CELLULAR_CONFIG_SARA_R4_REBOOT_ON_INIT** Some platforms may not support hard reboot on SARA-R4. This config helps to trigger a soft reboot during module init...
diff --git a/modules/sara_r4/cellular_r4.c b/modules/sara_r4/cellular_r4.c index 2f8a5a5c..c0bbba3d 100644 --- a/modules/sara_r4/cellular_r4.c +++ b/modules/sara_r4/cellular_r4.c @@ -281,7 +281,7 @@ CellularError_t rebootCellularModem( CellularContext_t * pContext, /* wait for modem after reboot*/ while( coun...
3
2
0
[{"id": "G0", "claim": "The \"rebootCellularModem: Modem is not ready. Retry sending ATE0.\" log should be a LogWarn instead of LogInfo.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The typo \"unknow\" in the new session warnings of _cellular_UrcProces...
null
FreeRTOS__FreeRTOS-Plus-TCP__415
FreeRTOS/FreeRTOS-Plus-TCP
415
defect
ab0d4f84beee3acce2097020ef631169ac55f618
1a804a1c891da665874cf48beb26ea9720c09261
No ARP verification during DHCP phase
<!--- Title --> Description ----------- This PR addresses [issue 414](https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/issues/414) raised by @RuStrannik. In his projects he calls `FreeRTOS_IPInit()` with zero's for all of the IP-addresses and netmask. That worked fine, until PR #338 was submitted: "Send ARP packet...
diff --git a/FreeRTOS_UDP_IP.c b/FreeRTOS_UDP_IP.c index 59b7f41830..fad08a5892 100644 --- a/FreeRTOS_UDP_IP.c +++ b/FreeRTOS_UDP_IP.c @@ -319,19 +319,27 @@ BaseType_t xProcessReceivedUDPPacket( NetworkBufferDescriptor_t * pxNetworkBuffe { if( pxSocket != NULL ) { - if( xCheckRequiresA...
2
1
1
[{"id": "G0", "claim": "The new `*ipLOCAL_IP_ADDRESS_POINTER != 0U` check should preferably be moved into `xCheckRequiresARPResolution`, since that function is supposed to return pdFALSE when ARP resolution should not be done.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id"...
null
FreeRTOS__FreeRTOS-Plus-TCP__546
FreeRTOS/FreeRTOS-Plus-TCP
546
defect
e0ce54235881ef9f479dd87ecf832642e96a35b7
40dec1794a5749974d9be678980e5e284cc4121d
IPv4/Single: Add a SocketID to a socket
<!--- Title --> Description ----------- In [issue #540](https://github.com/FreeRTOS/FreeRTOS-Plus-TCP/issues/543), [Jabob Carver](https://github.com/karver8) is asking for the possibility to assign a unique ID to each socket. We found that a good idea and this PR adds it, depending on the new macro `ipconfigUSE...
diff --git a/.github/lexicon.txt b/.github/lexicon.txt index 1ea58fbfd5..949a065e28 100644 --- a/.github/lexicon.txt +++ b/.github/lexicon.txt @@ -230,6 +230,7 @@ egetlinklayeraddress ehertype einitialwait einprogress +einval einvalidchecksum einvaliddata eleasedaddress @@ -785,6 +786,7 @@ pvparameters pvportmal...
2
1
1
[{"id": "G0", "claim": "The pull request should not add yet another configuration option (ipconfigUSE_SetSocketID); the Socket-ID functions should be added unconditionally instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new public API functio...
null
FreeRTOS__FreeRTOS-Plus-TCP__559
FreeRTOS/FreeRTOS-Plus-TCP
559
defect
daa4e18e4de1658f925b4bfee6242b96a27b58a8
77a0c81ccc60752b86bfba19a4bd54f247de0deb
IPv4/single: connect() should return immediately after a protocol error and other things
Description ----------- A TCP connection can be established in either two ways: accept() and connect(). When using connect(), the socket is created and owned by the application. When using accept(), the new socket is created and temporarily owned by the IP-task, and in the comments it is called an "orphaned soc...
diff --git a/.github/lexicon.txt b/.github/lexicon.txt index 1ea58fbfd5..dee40ee1ca 100644 --- a/.github/lexicon.txt +++ b/.github/lexicon.txt @@ -1448,6 +1448,7 @@ xcallbacklist xcheckloopback xclearonexit xclientsocket +xconnected xcount xdatalength xdatalengthbytes diff --git a/source/FreeRTOS_Sockets.c b/sour...
8
8
1
[{"id": "G0", "claim": "Declare the new uxEvents variable at the top of the block, just after for( ; ; ), instead of mid-block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace the comment 'Go sleeping until we get any down-stream event' w...
null
FreeRTOS__FreeRTOS__506
FreeRTOS/FreeRTOS
506
defect
c4d8002634a955a586692c416f5d4557e2e8098c
489863dd266708d3a0abb5c88311cd3244a217dc
Add unity memory extension, fake_assert, and enable -fsanitize=address
Description ----------- Add unity memory extension to count calls to malloc/free and allow tests to easily cause calls to malloc to fail. Add fake_assert.h to allows tests to verify configASSERT calls. Enable -fsanitize=address LDFLAG for CMock tests to verify memory usage bounds. Test Steps ----------- Ru...
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000000..612203583d2 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +indent_style = space +indent_size = 4 + +[{Makefile,**.mk,Makefile.in}] +indent_style = tab diff --git a/.github/scripts/core_checker.py b/.github/scripts...
6
4
0
[{"id": "G0", "claim": "It would be nice to add different sanitizers with different make targets (e.g. make run_sanitize_address, make run_sanitize_memory) instead of a single sanitizer invocation.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the ...
null
FreeRTOS__FreeRTOS__522
FreeRTOS/FreeRTOS
522
defect
c8fa483b68c6c1149c2a7a8bc1e901b38860ec9b
a91f4f917bb68ebbb694ed43da31926332594dda
Add feature to set credentials using buffer in MQTT_Mutual_Auth_wolfSSL demo
Description ----------- In the existing MQTT_Mutual_Auth_wolfSSL demo, client credentials are loaded only from the file system. To enhance usability, this PR adds the ability to use buffers to load credentials. Test Steps ----------- If the user wants to use a buffer to load device credentials such as certi...
diff --git a/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Mutual_Auth_wolfSSL/DemoTasks/MutualAuthMQTTExample.c b/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_Mutual_Auth_wolfSSL/DemoTasks/MutualAuthMQTTExample.c index 35cf7e43693..cd0c754307b 100644 --- a/FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/MQTT_...
5
5
1
[{"id": "G0", "claim": "The README misspells the AWS IoT endpoint domain as 'amazonasw.com' where it should read 'amazonaws.com'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The README should replace the example credential strings in credential...
null
FreeRTOS__FreeRTOS__592
FreeRTOS/FreeRTOS
592
defect
e117bdcd178c4074fd0d255958487807a7b50032
aac1ab7172ca641bb912d140a1e689c07df9feb2
Test: Mask unit test warning
Mask unit test warning Description ----------- Jenkins was failing the unit test because of a warning, removing the warning as it is previously tested Test Steps ----------- Unit Tests pass By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, un...
diff --git a/FreeRTOS/Test/CMock/event_groups/Makefile b/FreeRTOS/Test/CMock/event_groups/Makefile index d220ed760ca..55e690b55c1 100644 --- a/FreeRTOS/Test/CMock/event_groups/Makefile +++ b/FreeRTOS/Test/CMock/event_groups/Makefile @@ -32,10 +32,11 @@ MOCK_FILES_FP += $(PROJECT_DIR)/list_macros.h # List any ad...
1
1
0
[{"id": "G0", "claim": "Instead of re-declaring `extern bool xMaskAssertAndAbort;` in each test file, use Get/Set accessor functions, which would be cleaner if declaring the variable is problematic.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FreeRTOS__FreeRTOS__690
FreeRTOS/FreeRTOS
690
defect
409adde459814fbf6dc04176f987f2b5db7b6466
952b8ab000fe1112dc1ea445161fe2fbd1981a9f
UT: Add streambuffer test to make PR #391 pass
Add streambuffer test to make kernel PR #391 pass Description ----------- kernel PR 391 fails as a new assert is added without UT https://github.com/FreeRTOS/FreeRTOS-Kernel/pull/391 Test Steps ----------- add an test to check for the assert By submitting this pull request, I confirm that you can use, m...
diff --git a/FreeRTOS/Test/CMock/stream_buffer/stream_buffer_utest.c b/FreeRTOS/Test/CMock/stream_buffer/stream_buffer_utest.c index e8bf3e2a6ac..2546e4575af 100644 --- a/FreeRTOS/Test/CMock/stream_buffer/stream_buffer_utest.c +++ b/FreeRTOS/Test/CMock/stream_buffer/stream_buffer_utest.c @@ -994,6 +994,30 @@ void test_...
2
2
0
[{"id": "G0", "claim": "The test's doc comment should say the assertion fails if xDataLengthBytes does not fit in configMESSAGE_BUFFER_LENGTH_TYPE, instead of the inaccurate 'configMESSAGE_BUFFER_LENGTH_TYPE is not equal to size_t'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "intr...
null
FreeRTOS__FreeRTOS__878
FreeRTOS/FreeRTOS
878
defect
9218ce4d6ad58396d367f6fa65858a7618b5fa8b
fea98bee3c9f4638f4bced9baf4e7aa8d74a70b8
Fix bug in lPKCS11PkMbedtlsCloseSessionAndFree. Add doxygen api docs.
Description ----------- Fix a bug in the lPKCS11PkMbedtlsCloseSessionAndFree function which did not work properly with RSA keys. Add some doxygen api docs for public functions. Fix #877 By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the t...
diff --git a/FreeRTOS-Plus/Source/Application-Protocols/network_transport/mbedtls_pk_pkcs11.c b/FreeRTOS-Plus/Source/Application-Protocols/network_transport/mbedtls_pk_pkcs11.c index 2cddf4baf68..b97992a493d 100644 --- a/FreeRTOS-Plus/Source/Application-Protocols/network_transport/mbedtls_pk_pkcs11.c +++ b/FreeRTOS-Plu...
5
3
0
[{"id": "G0", "claim": "The TODO comment in p11_rsa_ctx_init should read \"when this is addressed\" instead of \"when this addressed\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @return line of p11_ecdsa_ctx_init should say more explicitl...
null
FreeRTOS__coreJSON__15
FreeRTOS/coreJSON
15
defect
63a721779c4838e5ae238ad07fef5e137c6626f7
d3a3dcc9870cde5ab8b1fd3a00a59541536e93e0
Update Github Actions to have spelling and formatting checks
Update Github Actions to have spelling and formatting checks
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a48e6f9..48a07f76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,3 +60,50 @@ jobs: if [ ! -d docs/doxygen/ ]; then exit 0; fi doxygen docs/doxygen/config.doxyfile 2>&1 | tee doxyoutput.txt ...
2
1
0
[{"id": "G0", "claim": "The separate 'Check For Trailing Whitespace' job appears redundant with the uncrustify check above, and the reviewer asks why it is needed at all.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The spell-check cleanup step should us...
null
FreeTAKTeam__Reticulum-Community-Hub__169
FreeTAKTeam/Reticulum-Community-Hub
169
defect
914fb2f79010139aca312a8eb0b9b1c9015bfb59
4909806e2693a7684e1c2fbd937e3c7a362d2d7f
Add protected /api/v1/auth/validate endpoint and OpenAPI docs, with tests
### Motivation - Provide a small UI-facing endpoint that allows the frontend to confirm whether the client is authenticated and learn minimal, non-secret metadata about auth mode and client locality. - Reuse the existing `ApiAuth` and `build_protected_dependency` logic so the endpoint enforces the same protected API ru...
diff --git a/API/ReticulumCommunityHub-OAS.yaml b/API/ReticulumCommunityHub-OAS.yaml index fd94c454..b32981ed 100644 --- a/API/ReticulumCommunityHub-OAS.yaml +++ b/API/ReticulumCommunityHub-OAS.yaml @@ -56,6 +56,28 @@ paths: application/json: schema: $ref: '#/components/sche...
1
1
1
[{"id": "G0", "claim": "Requiring the new keyword-only `auth: ApiAuth` argument on `register_core_routes` is a breaking API change that leaves pre-existing callers such as `tests/northbound/test_routes_rest_extended.py` (which invoke it without `auth`) raising `TypeError`, and it should be fixed either by a backward-co...
null
FreeTAKTeam__Reticulum-Community-Hub__33
FreeTAKTeam/Reticulum-Community-Hub
33
defect
c5306ed96f5990757f7659fac1fb46369d1ba0f5
46e0959252d7028d8fca87816e0e7dcd5cc67d22
Fix EmbeddedLxmd restart logic
## Summary - clear the embedded LXMD stop event after helper threads exit so a restarted instance can emit announcements again - add a regression test that exercises a start → stop → start cycle on the same EmbeddedLxmd instance ## Testing - pytest tests/test_embedded_lxmd.py ------ [Codex Task](https://chatgpt.com/...
diff --git a/reticulum_telemetry_hub/embedded_lxmd/embedded.py b/reticulum_telemetry_hub/embedded_lxmd/embedded.py index d00e00b4..9b528582 100644 --- a/reticulum_telemetry_hub/embedded_lxmd/embedded.py +++ b/reticulum_telemetry_hub/embedded_lxmd/embedded.py @@ -106,6 +106,8 @@ def stop(self) -> None: for thre...
1
1
1
[{"id": "G0", "claim": "Clearing the stop event immediately after joining workers with a 1 s timeout can leave a still-running worker that resumes emitting announces/telemetry after stop() and lets a later start() create duplicate workers; the event should only be cleared once all threads have terminated, e.g. by joini...
null
FreeTAKTeam__Reticulum-Community-Hub__34
FreeTAKTeam/Reticulum-Community-Hub
34
defect
73923b6b357dfd09c614c4e16decf85d35cbb173
1d17b5331839ab47ff17c311f2234f86f50459db
Ensure topic patching preserves creation timestamp
## Summary - add a dedicated `update_topic` helper that mutates existing topic rows without recreating them - call the new helper from `ReticulumTelemetryHubAPI.patch_topic` so partial updates preserve metadata - add a regression test to ensure `created_at` stays unchanged after patching ## Testing - pytest tests/test...
diff --git a/reticulum_telemetry_hub/api/service.py b/reticulum_telemetry_hub/api/service.py index 47e0f787..ddc592a9 100644 --- a/reticulum_telemetry_hub/api/service.py +++ b/reticulum_telemetry_hub/api/service.py @@ -67,15 +67,24 @@ def delete_topic(self, topic_id: str) -> Topic: def patch_topic(self, topic_id...
1
1
1
[{"id": "G0", "claim": "Clearing a topic description no longer persists: when a caller passes an explicit empty string or None to patch_topic, update_fields[\"topic_description\"] resolves to None and _storage.update_topic skips None fields, so the operation succeeds without changing the database.", "category": "correc...
null
FreeTDS__freetds__107
FreeTDS/freetds
107
defect
37c5ee436b20957df03a274cef9b76c357198bff
a6967f09bdc38f12c9eca3b41892b1ff339ab519
Do not override per-connection timeout settings in dbsettime
As per the discussion in https://github.com/FreeTDS/freetds/issues/105, calling `dbsettime(timeout)` should not override per-connection timeout settings previously set by `dbsetopt(connection, DBSETTIME, timeout, 0)`.
diff --git a/src/dblib/dblib.c b/src/dblib/dblib.c index ef9025021e..23e274c636 100644 --- a/src/dblib/dblib.c +++ b/src/dblib/dblib.c @@ -4107,6 +4107,7 @@ dbsettime(int seconds) { TDSSOCKET **tds; int i; + DBPROCESS *dbproc; tdsdump_log(TDS_DBG_FUNC, "dbsettime(%d)\n", seconds); tds_mutex_lock(&dblib_mutex...
2
2
0
[{"id": "G0", "claim": "If the test fails people will wait quite long with the global timeout set to 120, so the test should use 35 instead (the query takes 30 seconds).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In dbsettime the code should use the...
null
FreeTDS__freetds__449
FreeTDS/freetds
449
defect
758df01942c3e3f84bf13a733e34f7084934225a
5d124c7a99fba9e38294c7ebddf22df3e7ea9970
More NCBI changes for your consideration (Jan. 2022)
Happy new year! I have four more patches for your consideration; I've rolled them up into a single PR, but they're mutually independent, so you should be able to take or leave them individually. (Likewise for 27c7a831's changes to each individual file.)
diff --git a/src/ctlib/ct.c b/src/ctlib/ct.c index 171bf83f00..b1df863d7d 100644 --- a/src/ctlib/ct.c +++ b/src/ctlib/ct.c @@ -1574,8 +1574,6 @@ ct_bind(CS_COMMAND * cmd, CS_INT item, CS_DATAFMT * datafmt, CS_VOID * buffer, C if (!resinfo || item <= 0 || item > resinfo->num_cols) return CS_FAIL; - colinfo = resi...
5
3
3
[{"id": "G0", "claim": "When the coldata[i].value malloc fails, the loop breaks without setting ret, so the error is never reported; ret should be set to CS_FAIL.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Casting the value to double before the ...
null
FreeTDS__freetds__460
FreeTDS/freetds
460
defect
ff1c9af7f9a0f137cd23613bd8b95c644bef217c
c17fd2db1843e63d80b26c038345ee8a147ea149
Allow embedded braces in connection-string values
We've encountered an issue with escaping: if the value field contains the `;` character then it is needed to be escaped with braces as mentioned in the documentation: https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqldriverconnect-function?view=sql-server-ver15#comments However there weren't any mention ...
diff --git a/include/freetds/odbc.h b/include/freetds/odbc.h index e707cc5678..aa5e2728fe 100644 --- a/include/freetds/odbc.h +++ b/include/freetds/odbc.h @@ -529,10 +529,7 @@ enum { * connectparams.h */ -typedef struct { - const char *p; - size_t len; -} TDS_PARSED_PARAM; +typedef DSTR TDS_PARSED_PARAM; /** ...
7
7
3
[{"id": "G0", "claim": "strdup in odbc_parse_connect_string_value_escaped can fail and its result is used without a check, and the reviewer asks why the string is duplicated at all instead of making the connection string writable up front.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": ...
null
Frojd__wagtail-geo-widget__111
Frojd/wagtail-geo-widget
111
defect
d5fa15e3c44be2c047e6721904d0d82e4ffb4251
734d71b006507716956743a969106d1e1ab936df
Wagtail 4
Release notes: https://docs.wagtail.org/en/stable/releases/4.0.html - Updated docs - Updated some imports on test Tests are OK ``` Found 14 test(s). Creating test database for alias 'default'... System check identified no issues (0 silenced). .............. -----------------------------------------------...
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 25ea0e0..a802423 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,7 @@ jobs: - 2.15.5 - 2.16.2 - 3.0.1 + - 4.0.4 services: postgres: image: postg...
3
3
0
[{"id": "G0", "claim": "The StreamField examples in the docs should pass use_json_field=True for correctness with Wagtail 3+/4, and the remaining doc examples that can be updated the same way should all be updated.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id":...
null
FuelLabs__fuel-core__1631
FuelLabs/fuel-core
1,631
defect
3c55250c2334033ec5e1d14ea12ee1205eea04ef
fc0b5ff3ddcdc97d66337879aee53b9207b87c54
feat: dry run multiple transactions
closes #1533
diff --git a/CHANGELOG.md b/CHANGELOG.md index 61e4eb6d773..51b5c5f3b6a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Description of the upcoming release here. ### Changed - [#1633](https://github.com/FuelLabs/fuel-core/pull/1633): Notify services about importing of the genesis block. +- [#1631](ht...
4
3
1
[{"id": "G0", "claim": "The #1631 changelog entry describes a breaking change, so it belongs under the '### Breaking' section rather than '### Changed'.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The dry run doc comment should read 'Simulates ...
null
FuelLabs__fuel-core__2080
FuelLabs/fuel-core
2,080
defect
ff2b70333df46dce59f0f00c1bf319f2e8648d3f
7eb7c6e35d30b8de9a46910a2d9d208fd0be9930
Validate WASM on txpool level before allowing upgrade tx
Closes #2078 When submitting an Upgrade tx, validate the WASM before it can be added into the txpool. This is technically a breaking change, as previously-accepted but semantically invalid transactions are no longer accepted. ## Checklist - [x] Breaking changes are clearly marked as such in the PR description an...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 88011905992..b71da15bc01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Changed -[2076](https://github.com/FuelLabs/fuel-core/pull/2076): Replace usages of `iter_all` with `iter_all_...
9
8
2
[{"id": "G0", "claim": "The WasmChecker method name `uploaded_wasm_is_valid` implies the return type should be bool, so rename it (suggestion: `validate_wasm`).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The txpool service generics should consistentl...
null
FuelLabs__fuel-core__263
FuelLabs/fuel-core
263
defect
4f21de4a0d85b853b04214cf35870a3f1bf7cc39
601425ae2a2032d3d42fd789a2fee20f7885b18f
Fix Transaction Status API
Closes #154 This updates the transaction status api to use the mempool as a shortcut to determine transaction status, as if a transaction is in the mempool it's status is submitted. There is a small TODO where the time used for the submitted status is the current time of when the status if fetched rather than the ...
diff --git a/fuel-core/src/schema/tx/types.rs b/fuel-core/src/schema/tx/types.rs index e295062d37f..47f3da33ab6 100644 --- a/fuel-core/src/schema/tx/types.rs +++ b/fuel-core/src/schema/tx/types.rs @@ -9,9 +9,14 @@ use crate::{database::Database, schema::block::Block}; use async_graphql::{Context, Enum, Object, Union};...
3
3
2
[{"id": "G0", "claim": "The status resolver creates a brand-new ephemeral txpool on each request instead of fetching the shared txpool out of the context, so it would never see transactions the user submitted, since a fresh instance keeps its own in-memory hashmaps.", "category": "correctness", "verdict": "supported", ...
null
FuelLabs__fuel-core__2900
FuelLabs/fuel-core
2,900
defect
49ff4e1805a65f229ca2cf94f51223f246554978
7b74a5059ef6f27bd7bc267ca5805f756c9794d5
refactor: Get rid of `Deref` impl on `ImportResult` by introducing wrapper type.
closes #2899 See `crates/types/src/services/block_importer.rs` for the main change. The rest of the PR is just adapting the code to use explicit dereferencing to access the relevant fields.
diff --git a/.changes/breaking/2900.md b/.changes/breaking/2900.md new file mode 100644 index 00000000000..94df231f177 --- /dev/null +++ b/.changes/breaking/2900.md @@ -0,0 +1 @@ +Use `dyn AsRef<ImportResult>` instead of `dyn Deref<ImportResult>` in `SharedImporterResult`. diff --git a/benches/benches/block_target_gas....
3
3
1
[{"id": "G0", "claim": "Replace the verbose explicit `.deref()` chains the PR adds (e.g. `res.deref().deref().as_ref()` in the bench and `result.deref().as_ref()` elsewhere) with more concise syntax such as `as_ref().as_ref()` or the `*` deref operator.", "category": "maintainability", "verdict": "supported", "priority...
null
FuelLabs__fuel-core__2929
FuelLabs/fuel-core
2,929
defect
3bd21874cc5f8294f45e1544883137131b6d8754
0e3ed9bcb4b9b86c1254debc7f78121c1d366fe2
Apply comments from the parent PR
Applied comment for https://github.com/FuelLabs/fuel-core/pull/2887. Created follow-up issue: https://github.com/FuelLabs/fuel-core/issues/2928
diff --git a/.cargo/config.toml b/.cargo/config.toml index b8bfa3f469a..cbd07afdc85 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -8,8 +8,3 @@ protocol = "sparse" # https://github.com/rust-lang/cargo/issues/4133 [target.aarch64-unknown-linux-gnu] linker = "aarch64-linux-gnu-gcc" - -[target.wasm32-unkno...
2
1
0
[{"id": "G0", "claim": "The new breaking-change entry should read \"Starting with this release, newly generated WASM state transition functions are no longer compatible with old versions of the `fuel-core`.\" instead of the grammatically off \"Starting this release ... is not more compatible\".", "category": "documenta...
null
FuelLabs__fuel-core__2956
FuelLabs/fuel-core
2,956
defect
b5d72dd7e56f13bbdbc759e35ea296d597c4d9f1
0a01dd2621513ca3662b5f98eb900b3c6ec8381b
Add excluded_contract filter to extract of transaction from TxPool
## Linked Issues/PRs Close https://github.com/FuelLabs/fuel-core/issues/2949 ## Description This is an unoptimized version that will be changed with the rest of the already inefficient version of selection when we will do https://github.com/FuelLabs/fuel-core/issues/2950. ## Checklist - [x] Breaking changes ar...
diff --git a/.changes/added/2956.md b/.changes/added/2956.md new file mode 100644 index 00000000000..dab3c27b7e6 --- /dev/null +++ b/.changes/added/2956.md @@ -0,0 +1 @@ +Add excluded_contract filter to extract of transaction from TxPool. \ No newline at end of file diff --git a/crates/fuel-core/src/service/adapters/ex...
1
1
1
[{"id": "G0", "claim": "The PR should not gate the contract-existence requirement on `utxo_validation`; the contract must always be required to exist, otherwise the executor will fail.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
FuelLabs__fuel-core__2978
FuelLabs/fuel-core
2,978
defect
6dc7e90305d59c04b5c6e83a6dde84abdf928ccb
4d9d03de4fe0f0e92ca56ef27e05b08a68724d93
fix(compression_service): prevent syncing from genesis if compression db is empty
improving error handling, and refining synchronization logic. Key changes include adding an override for the starting block height, improving synchronization methods, and updating error reporting. ### Enhancements to Configurability: * Added an `override_starting_height` field to `DaCompressionConfig` and `Compress...
diff --git a/crates/services/compression/src/service.rs b/crates/services/compression/src/service.rs index ee798ca912e..c2c869489e4 100644 --- a/crates/services/compression/src/service.rs +++ b/crates/services/compression/src/service.rs @@ -226,6 +226,12 @@ where loop { let storage_height = self.s...
4
2
1
[{"id": "G0", "claim": "The new test da_compression__starts_and_compresses_blocks_correctly_from_empty_database fails on 0.43.1.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Shutting down with block_stream.next().now_or_never() may swallow an upda...
null
FuelLabs__fuel-core__3022
FuelLabs/fuel-core
3,022
defect
cb7b83291dfd5e3b0809baeac17e77db235dfb80
e6f5e1f10a051a95697d142e356bb81f69abdede
feat: Support rolling back relayer DB
Closes #3019 This PR extends the existing rollback functionality to also roll back the relayer database. The DA height to roll back to is inferred based on the DA height of the target block during the rollback.
diff --git a/.changes/breaking/3022.md b/.changes/breaking/3022.md new file mode 100644 index 00000000000..e3354ce6214 --- /dev/null +++ b/.changes/breaking/3022.md @@ -0,0 +1 @@ +Support rolling back Relayer DB. diff --git a/crates/fuel-core/src/combined_database.rs b/crates/fuel-core/src/combined_database.rs index be...
4
4
1
[{"id": "G0", "claim": "The pull request should also include the compression DB rollback here or, if not, address it in a follow-up.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should use the FuelCoreDriver helper to create the node instead o...
null
FuelLabs__fuel-core__3023
FuelLabs/fuel-core
3,023
defect
85b2356d510a30cffaa8be7015203bb8ac30fee6
764b391db8ba50e2ed9a5667381735dddd56e1d2
chore(gas_price_service): add a method to wait until storages are synced
## Linked Issues/PRs <!-- List of related issues/PRs --> ## Description <!-- List of detailed changes --> This PR add a method to wait until storages are synced,modify the test to use the `await_synced()` method. ## Checklist - [ ] Breaking changes are clearly marked as such in the PR description and changelog ...
diff --git a/crates/services/gas_price_service/src/lib.rs b/crates/services/gas_price_service/src/lib.rs index c045bad4118..4dbe20d5aee 100644 --- a/crates/services/gas_price_service/src/lib.rs +++ b/crates/services/gas_price_service/src/lib.rs @@ -10,5 +10,7 @@ pub mod ports; pub mod v0; pub mod common; + +pub mod...
4
4
1
[{"id": "G0", "claim": "The three SyncState doc comments in sync_state.rs should say 'gas price service' (e.g. 'The synchronization state of the gas price service.') instead of 'gas price'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an awa...
null
FuelLabs__fuel-core__3104
FuelLabs/fuel-core
3,104
defect
f60a0bcf96ef7c392ddb9fb7b8c4a2652db72ea3
0ab2ce95b5b200c4d51db57051a25c82c46f6d98
Add dynamic adjustment for relayer log page size.
## Linked Issues/PRs Fixes: #2175 ## Description - Introduced dynamic adjustment logic for --relayer-log-page-size to prevent sync failures caused by oversized Ethereum RPC responses. - Page size now grows or shrinks based on recent success/failure patterns. ## Checklist - [ ] Breaking changes are clearly ma...
diff --git a/.changes/changed/3104.md b/.changes/changed/3104.md new file mode 100644 index 00000000000..007afc19cab --- /dev/null +++ b/.changes/changed/3104.md @@ -0,0 +1 @@ +Automatically adjust relayer log page size to prevent sync failures from oversized Ethereum RPC responses. \ No newline at end of file diff --g...
4
4
3
[{"id": "G0", "claim": "The ad-hoc println! debug statements added around download_logs should be removed or replaced with proper tracing (e.g. tracing::info!/tracing::debug!).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The page size is only...
null
FuelLabs__fuel-core__3133
FuelLabs/fuel-core
3,133
defect
b835194f7999f2a4fdd8b0fa99e7fa034b490616
402791550d973eb7666216e947f9d273796c815d
Include tx_id into SqueezedOut reason to simplify debugging.
## Linked Issues/PRs #3132 ## Description Include tx_id into SqueezedOut reason to simplify debugging in the future ## Checklist - [ ] Breaking changes are clearly marked as such in the PR description and changelog - [ ] New behavior is reflected in tests - [ ] [The specification](https://github.com/FuelLabs...
diff --git a/.changes/changed/3133.md b/.changes/changed/3133.md new file mode 100644 index 00000000000..275e31a4c2e --- /dev/null +++ b/.changes/changed/3133.md @@ -0,0 +1 @@ +Include `tx_id` into `SqueezedOut` reason to simplify debugging. \ No newline at end of file diff --git a/crates/fuel-core/src/query/subscripti...
8
4
2
[{"id": "G0", "claim": "The transaction ID should live in its own field on SqueezedOut instead of being interpolated into the reason string (asked for both the preconfirmation and the transaction_status SqueezedOut types).", "category": "design", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": ...
null
FuelLabs__fuel-core__3156
FuelLabs/fuel-core
3,156
defect
7cb0fdcf74acd7da35f5b93e264c353012a937ea
f964c4f21003512238c58a63e168760d75b8edb1
Refactor FuelClient::with_urls to accept a slice of string references. Add more tests.
## Linked Issues/PRs <!-- List of related issues/PRs --> ## Description Refactor FuelClient::with_urls to accept a slice of string references. ## Checklist - [ ] Breaking changes are clearly marked as such in the PR description and changelog - [ ] New behavior is reflected in tests - [ ] [The specification](...
diff --git a/crates/client/src/client.rs b/crates/client/src/client.rs index 7eff2389271..6dceb4a965e 100644 --- a/crates/client/src/client.rs +++ b/crates/client/src/client.rs @@ -300,7 +300,12 @@ impl FuelClient { Self::from_str(url.as_ref()) } - pub fn with_urls(urls: Vec<Url>) -> anyhow::Result<S...
1
1
1
[{"id": "G0", "claim": "The new get_default_url accesses self.urls[default_index] without checking whether the urls array is empty, so if FuelClient::with_urls is called with an empty slice (FailoverTransport::new does not validate that the URL list is non-empty) a client can be successfully created with no URLs and wi...
null
FuelLabs__fuel-core__3167
FuelLabs/fuel-core
3,167
defect
66355782db88a93fe265ebc39bc935af4c287bcc
80c3bb944502e459384fd5de8ed04b2faeb94e6d
Use nested receipts and blocks as bytes
## Description <!-- List of detailed changes --> Adds use of these new protobuf types: https://github.com/FuelLabs/fuel-core-protobuf/pull/6 Specifically Changing `Vec<Receipt>` -> `Vec<Vec<Receipt>>` and adding a bytes type for Block.
diff --git a/Cargo.lock b/Cargo.lock index 198f0ee942c..90e23eb94f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -414,7 +414,7 @@ dependencies = [ "alloy-rlp", "alloy-serde", "alloy-sol-types", - "itertools 0.14.0", + "itertools 0.13.0", "serde", "serde_json", "serde_with", @@ -3324,7 +3324,7 @@ source = "re...
2
1
0
[{"id": "G0", "claim": "Since the blocks wrapped in `Arc<Vec<u8>>` are never mutated, the type should be `Arc<[u8]>` instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A large reusable `Vec` buffer could be added here so the encoding buffer does not...
null
FuelLabs__fuel-core__3168
FuelLabs/fuel-core
3,168
defect
66355782db88a93fe265ebc39bc935af4c287bcc
d68bf16c07521d10123d09005353c75d43545d53
add proto and s3 to client
## Description <!-- List of detailed changes --> This is adding support for accessing the new block aggregation RPC and subsequent S3 calls using the Fuel Client.
diff --git a/Cargo.lock b/Cargo.lock index 198f0ee942c..4ce4aa87eed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -414,7 +414,7 @@ dependencies = [ "alloy-rlp", "alloy-serde", "alloy-sol-types", - "itertools 0.14.0", + "itertools 0.13.0", "serde", "serde_json", "serde_with", @@ -3324,7 +3324,7 @@ source = "re...
19
15
10
[{"id": "G0", "claim": "new_with_rpc_and_s3 declares an unused generic parameter S and provides no S3 functionality despite its name, making it an incomplete, misleading constructor.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RPC URL is unconditi...
null
FuelLabs__fuel-core__3173
FuelLabs/fuel-core
3,173
defect
bedd5ac32001541aca3efccd2b04baae29a46b54
6edb87022818514171db2a72318b19e41486c307
cache aws clients for all urls
## Linked Issues/PRs <!-- List of related issues/PRs --> Closes https://github.com/FuelLabs/fuel-core/issues/3171 ## Description <!-- List of detailed changes --> We were assuming that _most_ rpc remote responses would not include a url for the s3 bucket. This was a wrong assumption. This change allows improved ...
diff --git a/Cargo.lock b/Cargo.lock index 4ce4aa87eed..c06c50f0aa9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -414,7 +414,7 @@ dependencies = [ "alloy-rlp", "alloy-serde", "alloy-sol-types", - "itertools 0.13.0", + "itertools 0.14.0", "serde", "serde_json", "serde_with", @@ -1290,9 +1290,9 @@ checksum = "...
5
3
0
[{"id": "G0", "claim": "AWSClientManager should be created empty instead of eagerly constructing a default AWS client during manager creation, with per-endpoint clients created lazily inside get_client and the map keyed by Option<String>.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "intro...
null
FuelLabs__fuel-core__3227
FuelLabs/fuel-core
3,227
defect
cc827756378fae62ccd1e645e892c9a308ba4976
b421bff5480c6e9de5486729534a95eaaf8da3fa
ADd cursor and latest height script
## Linked Issues/PRs <!-- List of related issues/PRs --> ## Description <!-- List of detailed changes --> ## Checklist - [ ] Breaking changes are clearly marked as such in the PR description and changelog - [ ] New behavior is reflected in tests - [ ] [The specification](https://github.com/FuelLabs/fuel-spec...
diff --git a/crates/fuel-core/redis_leader_lease_adapter_scripts/read_latest_stream_entry.lua b/crates/fuel-core/redis_leader_lease_adapter_scripts/read_latest_stream_entry.lua new file mode 100644 index 00000000000..07a5870dbc2 --- /dev/null +++ b/crates/fuel-core/redis_leader_lease_adapter_scripts/read_latest_stream_...
3
1
1
[{"id": "G0", "claim": "read_stream_entries_on_node advances each node's stream cursor to the last entry read before the reconciliation loop attempts sub-quorum repair, so if repair_sub_quorum_block returns Ok(false) or Err the already-advanced cursor makes those entries permanently unreachable via cursor reads on late...
null
FuelLabs__fuel-core__3255
FuelLabs/fuel-core
3,255
defect
addb4c0e97615b1476fe79bf63672b4127209a8e
72791d61f636b95d728262026dc47cf5f27af5ce
feat: add support for http endpoints and dynamic decompression
## Linked Issues/PRs <!-- List of related issues/PRs --> ## Description <!-- List of detailed changes --> This PR adds code support for the existing protobuf HTTP-based remote RPC block accessor. This allows the use of CDNs or other HTTP-based URLs, while still publishing blocks to S3. It also cleans up decompr...
diff --git a/.changes/changed/3255.md b/.changes/changed/3255.md new file mode 100644 index 00000000000..b2d62ccf0ce --- /dev/null +++ b/.changes/changed/3255.md @@ -0,0 +1 @@ +Adds client & server support for the existing protobuf HTTP-based remote RPC block accessor. diff --git a/bin/fuel-core/src/cli/run/rpc.rs b/bi...
4
4
0
[{"id": "G0", "claim": "The misleading Cargo.toml comment implying that enabling reqwest compression features would break decoding should be removed, since the code handles the case already.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The public ...
null
FuelLabs__fuel-core__3264
FuelLabs/fuel-core
3,264
defect
a184f3f6d8b2b86f77b038808bdb285e8d8785d1
42f111e942516fd11c01e0201bbab67a5ac9befd
Rollback unsuccessful preconfs in the mempool
Closes #3098. ## Problem When a block producer sends preconfirmation updates, sentry nodes optimistically treat the included transactions as committed, removing them from the mempool and marking their inputs as spent. If the producer crashes and re-produces a block at the same height without those transactions, t...
diff --git a/.changes/fixed/3264.md b/.changes/fixed/3264.md new file mode 100644 index 00000000000..30edc35c336 --- /dev/null +++ b/.changes/fixed/3264.md @@ -0,0 +1 @@ +Rollback stale preconfirmations in the mempool when the canonical block at that height omits the preconfirmed transactions, restoring spent inputs an...
7
4
3
[{"id": "G0", "claim": "Preconfirmations whose tentative block height is at or below the already-processed canonical height are not rejected, so a late preconfirmation can be applied (marking inputs spent and admitting dependents against non-canonical outputs) and a stale tentative_preconfs entry can cause the next blo...
null
FuelLabs__fuel-core__404
FuelLabs/fuel-core
404
defect
c8ce7ad8abed90c904056393beb8197ceab28fb0
22dc375868994de7cc745ab8f7e692922f0e02da
Database/RocksDb Metrics
Designed to close #167 **Design** Uses Lazy Static to host Prometheus counters, which are then written to whenever the database performs read and write operations. This is then hosted on a `/metrics` endpoint using the same design as @uberscott 's rustometer. **Test** Test is a bit messy with turbofish, I wa...
diff --git a/Cargo.lock b/Cargo.lock index 93ab5967090..1c66b9cda25 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2133,6 +2133,21 @@ version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" +[[package]] +name = "f...
6
6
1
[{"id": "G0", "claim": "The prometheus dependency version should be specified as \"0.13\" rather than \"0.13.0\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The default features list should be formatted as [\"rocksdb\", \"prometheus\", \"deb...
null
FuelLabs__fuel-core__427
FuelLabs/fuel-core
427
defect
18a3468ffe9f5f1f4c762c38e483817dac84a095
d729e65b0dee0bf36cb3ea432cecbcb23cf9ddc4
Add Metrics to Batch Write and Key Length Fix
Closes #416 , added a script and a submit call to ensure `batch_write` is actually tested with metrics. Working fine and minimal changes, just a quick fix.
diff --git a/fuel-core/src/state/rocks_db.rs b/fuel-core/src/state/rocks_db.rs index 560e2887f15..848ae6a8fad 100644 --- a/fuel-core/src/state/rocks_db.rs +++ b/fuel-core/src/state/rocks_db.rs @@ -195,14 +195,15 @@ impl KeyValueStore for RocksDb { .iterator_cf_opt(&self.cf(column), opts, iter_mode) ...
1
1
1
[{"id": "G0", "claim": "The bytes_written_meter should be incremented by batch.size_in_bytes() instead of batch.len(), because len returns the number of items in the batch, not the number of bytes.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
FuelLabs__fuel-core__461
FuelLabs/fuel-core
461
defect
19c48c9c5ed0b8a2840c8811f1ddc1dce785769d
7633e3809d14b5e0d09d2e1f2d4e12a7de720d9e
Controlc/block api
This PR adds a simple `advance_block` endpoint, which takes in an option of the amount to advance forward the block-height by (defaulting to 1 if nothing is supplied). I then inserts n empty `FuelBlocks`, and returns the new block-height. I was hoping to confirm this was inline with what you were looking for @vnepveu ?...
diff --git a/fuel-client/assets/schema.sdl b/fuel-client/assets/schema.sdl index d606e069eda..6f4523679bc 100644 --- a/fuel-client/assets/schema.sdl +++ b/fuel-client/assets/schema.sdl @@ -282,6 +282,7 @@ type Mutation { Submits transaction to the txpool """ submit(tx: HexString!): Transaction! + advanceBlock(adv...
5
4
1
[{"id": "G0", "claim": "The node should have a config option to disable the manual block-advance behavior in production.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The endpoint should avoid unwrap() on get_block_height and return the suggested error ...
null
FuelLabs__fuel-core__51
FuelLabs/fuel-core
51
defect
6c27bc1e961ed3ff04cc5b32bef0641a5f718a9f
844aadf2bc8f8c4c48eff97eafd269541205f181
Query transactions by account
Closes #48 - Adds a graphql endpoint to query transactions by associated coin "owners" in either inputs or outputs. - Transactions are sorted by time - Adds snapshot testing for some commonly used and referenced assembly code ![transactions_by_owner](https://user-images.githubusercontent.com/794823/140232575...
diff --git a/Cargo.lock b/Cargo.lock index 45ca228ac0c..d352af81536 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -95,9 +95,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.43" +version = "1.0.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28ae2b3dec75a406790005a20...
5
4
0
[{"id": "G0", "claim": "Instead of a separate transactionsByOwner query field, the PR could add a generic TransactionFilterInput type used as a filter argument on the existing transactions query.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The transacti...
null
FuelLabs__fuel-core__725
FuelLabs/fuel-core
725
defect
39c59a5b2e3e229ff3de0565c024760a328b0374
21d76c0b517ddc9409cc0a2edaf1a02a5feae0a9
Add support for custom timestamps
Closes #639 This PR adds `TimeParameters` to the produce_block mutation, as described in the issue. The provided time is checked to confirm that it is set after the latest block time, and that the addition of `block_time_interval` does not lead to an overflow. Three tests are added to verify the normal behaviour + ...
diff --git a/fuel-client/assets/schema.sdl b/fuel-client/assets/schema.sdl index 7bb117f6b4d..f0da2598f53 100644 --- a/fuel-client/assets/schema.sdl +++ b/fuel-client/assets/schema.sdl @@ -424,7 +424,7 @@ type Mutation { Submits transaction to the txpool """ submit(tx: HexString!): Transaction! - produceBlocks(bl...
1
1
0
[{"id": "G0", "claim": "The new helpers get_time_closure, check_start_after_latest_block and check_block_time_overflow don't actually need to be async, so the unnecessary async/await should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FuelLabs__fuel-core__779
FuelLabs/fuel-core
779
defect
b5fdd1931b7e7d8f11cd9cf2bcbfa4e1ebd16edd
05378f74da9a6c1b0b3fbe35cf407f46ecfa8156
add reserved nodes
closes #645 The approach here was to create a wrapper over the Noise protocol authentication. In the Noise protocol 2 peers, that are about to establish a connection, exchange their Identities, In our wrapper, once we receive the remote's identity we check it against the `reserved_nodes` HashSet, if it's part o...
diff --git a/fuel-core/src/cli/run/p2p.rs b/fuel-core/src/cli/run/p2p.rs index 40eddfb9d3b..ac1150e7f54 100644 --- a/fuel-core/src/cli/run/p2p.rs +++ b/fuel-core/src/cli/run/p2p.rs @@ -40,10 +40,19 @@ pub struct P2pArgs { pub max_block_size: usize, /// Addresses of the bootstrap nodes - /// They should c...
10
9
3
[{"id": "G0", "claim": "The reserved_nodes_only_mode flag should have documentation explaining why the setting is important and should be used, such as a PoA producer avoiding DoS by being shielded by reserved sentry nodes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
FuelLabs__fuel-vm__122
FuelLabs/fuel-vm
122
defect
9f67738c684ba72c5c975808170c72c3fae5bbca
20eb1605b41a0d4e96c2c4c59bfc4d3d1a7398f0
Capture overflow value instead of overflow state into `$of`
fixes: https://github.com/FuelLabs/fuel-vm/issues/121 Uses u128 math for all the instructions that need to treat the overflow register as the high bits of a u128. This will unblock the stdlib impl of u128 types. This includes: - add - addi - mul - muli - sll - slli - srl - srli - sub - subi The wor...
diff --git a/src/interpreter/alu.rs b/src/interpreter/alu.rs index febafd9a0b..5847cb0ad5 100644 --- a/src/interpreter/alu.rs +++ b/src/interpreter/alu.rs @@ -6,7 +6,31 @@ use fuel_asm::PanicReason; use fuel_types::{RegisterId, Word}; impl<S> Interpreter<S> { - pub(crate) fn alu_overflow<F, B, C>(&mut self, ra: ...
2
1
1
[{"id": "G0", "claim": "Per the VM spec, pow (EXP/EXPI) should simply set $of to 1 if the result would overflow, i.e. Boolean overflow, and left/right shift should never set $of at all.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The explicit mas...
null
FuelLabs__fuel-vm__174
FuelLabs/fuel-vm
174
defect
e3caf0f9bd8aca0bb09dd5feca8d87d40b94c188
c0fd505c1340d7720d798a0e2c0c511b4a9d3ce4
Implement GM::GetVerifyingPredicate metadata instr
The context of the execution should contain more info such as the index of the current predicate so we decouple that from the vm initialization. Also, its worthy to create a type that will encapsulate the behavior of the runtime predicates since it needs to store not only the program to be executed - so it can't ...
diff --git a/src/context.rs b/src/context.rs index 3086180c31..3e3ca5b4a7 100644 --- a/src/context.rs +++ b/src/context.rs @@ -1,11 +1,16 @@ //! VM runtime context definitions -#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] +use crate::predicate::RuntimePredicate; + +#[derive(Debug, Clone, Parti...
4
1
0
[{"id": "G0", "claim": "Block height seems to belong to the context and not to VM initialization, and asks whether to tackle that in this PR.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether the PR should also have a `Create` context variant a...
null
FuelLabs__fuel-vm__207
FuelLabs/fuel-vm
207
defect
87ae152d376d5a22af7591607e6d270487ee9c7e
0a0471469aa86648d6ccb5c29a149092f7690be2
Tests for Safe Arithmetic Checks in crypto.rs
Continues work of #170 Must not be merged until after #203
diff --git a/src/util.rs b/src/util.rs index 7bb8c3f5aa..272c8c47ba 100644 --- a/src/util.rs +++ b/src/util.rs @@ -76,10 +76,10 @@ pub mod test_helpers { use crate::transactor::Transactor; use anyhow::anyhow; - use fuel_asm::Opcode; + use fuel_asm::{Opcode, PanicReason}; use fuel_tx::{ - C...
1
1
0
[{"id": "G0", "claim": "check_expected_reason_for_opcodes should take opcodes as a slice (&[Opcode]) or an iterator instead of an owned Vec so callers do not have to clone it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FuelLabs__fuel-vm__261
FuelLabs/fuel-vm
261
defect
aa08f5841ac6f2b02bba71f001b692753d531d84
f5604b4529372d25d5563e2798d69d0dfb53dbca
Added a temporary field used by `Receipt::Panic` to fill `contract_id` if any
Fix for https://github.com/FuelLabs/fuel-vm/pull/255 and https://github.com/FuelLabs/fuel-vm/pull/233
diff --git a/src/interpreter.rs b/src/interpreter.rs index f96bb476dc..5e1640f3f9 100644 --- a/src/interpreter.rs +++ b/src/interpreter.rs @@ -15,7 +15,7 @@ use fuel_tx::{ Receipt, Script, ScriptCheckedMetadata, Transaction, TransactionFee, TransactionRepr, UniqueIdentifier, }; use fuel_types::bytes::{Serializab...
1
1
1
[{"id": "G0", "claim": "Tests should also check that the contract id in the Panic receipt is set to a non-zero value, not merely that it is present.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
FuelLabs__fuel-vm__284
FuelLabs/fuel-vm
284
defect
c67688b097480f83bae33c54435b4ca9acbcd965
9c956e13472033ee4ad91d92b95fc54b5443dc1b
Skip empty `Script` transaction
Fixes https://github.com/FuelLabs/fuel-core/issues/794 It is fast but not an optimal solution to unblock users. With the right solution, we need to skip execution totally without allocating any memory and `Interpreter`. But it requires some refactoring to support transactions which not affect VM during execution(lik...
diff --git a/src/interpreter/executors/debug.rs b/src/interpreter/executors/debug.rs index b941b32a1f..98d6eca4eb 100644 --- a/src/interpreter/executors/debug.rs +++ b/src/interpreter/executors/debug.rs @@ -21,6 +21,8 @@ where ProgramState::Revert(w) => Ok(ProgramState::Revert(w)), + Program...
2
1
1
[{"id": "G0", "claim": "From the client side these empty transactions should probably also be filtered out of the mempool (in a separate PR and issue).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Instead of returning the new `ProgramState::Skipped` fo...
null
FuelLabs__fuel-vm__342
FuelLabs/fuel-vm
342
defect
bc789b123569e35d85b2dbd7536e151ac6e4fdbf
f35e8e526844e1f44dddf7b2db17d3ee34b6663d
Read contract directly into memory
This adds a few traits: - `StorageSize` Allows checking the size of a value without copying or de-serializing into memory - `StorageRead` Like `io::Read` except takes a key. Not this deals with raw bytes and avoids any de-serialization. - `StorageWrite` Like `io::Write` except takes a key. Not this deals with raw by...
diff --git a/fuel-storage/src/impls.rs b/fuel-storage/src/impls.rs index 18a70e9f3b..5e595e2955 100644 --- a/fuel-storage/src/impls.rs +++ b/fuel-storage/src/impls.rs @@ -1,4 +1,7 @@ -use crate::{Mappable, MerkleRoot, MerkleRootStorage, StorageInspect, StorageMut, StorageMutate, StorageRef}; +use crate::{ + Mappable...
5
3
1
[{"id": "G0", "claim": "The asset_id_offset calculation should use Self::contract_id_offset() + ContractId::LEN so the layout relationship stays clear and automatic if contract_id_offset ever changes.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
FuelLabs__fuel-vm__346
FuelLabs/fuel-vm
346
defect
bc789b123569e35d85b2dbd7536e151ac6e4fdbf
67ca6be70e66bd2368137b5fe66c3a5f99b6da87
Refactor of `fuel-crypto` for clarity around safety
This started with the aim of carrying over https://github.com/FuelLabs/fuel-crypto/pull/36 which aimed to address https://github.com/FuelLabs/fuel-crypto/issues/35, though after noticing a few other instances of the same issue decided to take a closer look throughout the crate. This PR removes many of the unsafe con...
diff --git a/fuel-crypto/src/lib.rs b/fuel-crypto/src/lib.rs index 1e79e994c1..18f6f4adfd 100644 --- a/fuel-crypto/src/lib.rs +++ b/fuel-crypto/src/lib.rs @@ -40,7 +40,8 @@ pub use error::Error; pub use hasher::Hasher; pub use keystore::Keystore; pub use message::Message; -pub use mnemonic::FuelMnemonic; +#[cfg(all(...
5
1
0
[{"id": "G0", "claim": "The new `public_key_bytes_valid` leaves the first byte zeroed as the original `is_slice_in_curve_unchecked` did, but it should possibly be set to `SECP_UNCOMPRESSED_FLAG`; this should be investigated or an issue opened before landing.", "category": "correctness", "verdict": "uncertain", "priorit...
null
FuelLabs__fuel-vm__35
FuelLabs/fuel-vm
35
defect
d11a93ca4f18d996a65cc68c1c748e78421ff8c4
810a724fea2662691af6fe8d3f13ff531066a7a0
Add implementation for `GM` opcode
The variants of the get metadata function must be specified as enum so the consumers of this library can use it as immediate value of the `GM` opcode without acessing the internal value of the constant representation.
diff --git a/Cargo.toml b/Cargo.toml index 443663d858..043a57cb9b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,6 +47,11 @@ name = "test-flow" path = "tests/flow.rs" required-features = [ "random" ] +[[test]] +name = "test-metadata" +path = "tests/metadata.rs" +required-features = [ "random" ] + [[test]] name =...
2
2
0
[{"id": "G0", "claim": "Using `unwrap_or(0)` for the parent frame pointer is questionable since the `or` fallback should never be evaluated.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fetching of metadata should be moved inside the arms of t...
null
FuelLabs__fuel-vm__407
FuelLabs/fuel-vm
407
defect
90a9a9c9e3e897d5b335ed8cf69a3ed77fa8be4d
5327af9cb20c7cd8d5e24bf9c54c7ca0e82eb090
Make SMO charge from contract balance in internal context
Closes #369
diff --git a/fuel-vm/src/interpreter/blockchain.rs b/fuel-vm/src/interpreter/blockchain.rs index 9030c8b69c..f3caf79278 100644 --- a/fuel-vm/src/interpreter/blockchain.rs +++ b/fuel-vm/src/interpreter/blockchain.rs @@ -1,4 +1,4 @@ -use super::contract::{balance, contract_size}; +use super::contract::{balance, balance_d...
1
1
1
[{"id": "G0", "claim": "It would be nice to add one more SMO test case, or update the existing one, so that the full initial balance is spent (the amount == balance boundary) is covered.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
FuelLabs__fuel-vm__435
FuelLabs/fuel-vm
435
defect
9068914361ad260baf53fe5f7598b87fb84106f1
0099ea8840901ddc989de4d32e04bc0ca119d4e3
Allow empty range in the checked memory
The `SMO` opcode may pass empty array with zero size.
diff --git a/Cargo.toml b/Cargo.toml index 9cbc02d83e..5627c156ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,13 +18,13 @@ edition = "2021" homepage = "https://fuel.network/" license = "BUSL-1.1" repository = "https://github.com/FuelLabs/fuel-vm" -version = "0.31.0" +version = "0.31.1" [workspace.dependencies...
2
2
0
[{"id": "G0", "claim": "The test case's description string should be updated from \"Call abi can't be zero\" to \"message data can be zero-length\" to match its new expectation that a zero-length message data SMO succeeds.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
FuelLabs__fuel-vm__444
FuelLabs/fuel-vm
444
defect
7eba780fd7ee7f79a347f64d951b5fa4d5a04d78
eda159a7b5db0ef0944d18110be8cc832e6d54f1
Addressing minor issues
Fixes https://github.com/FuelLabs/fuel-vm/issues/445
diff --git a/fuel-asm/src/encoding_tests.rs b/fuel-asm/src/encoding_tests.rs index 497ed6f210..aec3362d97 100644 --- a/fuel-asm/src/encoding_tests.rs +++ b/fuel-asm/src/encoding_tests.rs @@ -104,7 +104,7 @@ fn panic_reason_description() { PanicReason::ArithmeticError, ]; - let pd = InstructionResult:...
2
2
2
[{"id": "G0", "claim": "The PR's new CheckedMemRange::new_inner logic triggers a quickcheck test failure — the same failure the reviewer filed as issue #445.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G3", "claim": "A panic receipt should carry a non-optional ...
null
FuelLabs__fuel-vm__45
FuelLabs/fuel-vm
45
defect
694997f472b592127417bb22efa662191aa0b162
d5236090caae05ebcce272f2995f7495b45fce65
Add `Backtrace` error struct
Backtrace will be responsible to provide the required data to debug the souce of an error. Since its creation cost isn't cheap, it will not be provided by default. The user will need to create a backtrace instance from the VM instance that generated the error, combined with the error variant itself.
diff --git a/src/error.rs b/src/error.rs index c189f6612a..226d9c903d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,11 +1,95 @@ +use crate::call::CallFrame; +use crate::consts::*; +use crate::interpreter::Interpreter; + use fuel_asm::{Opcode, OpcodeRepr}; use fuel_tx::ValidationError; -use fuel_types::RegisterId...
2
2
1
[{"id": "G0", "claim": "Since these execution methods are a public API of the VM, at least one happy-path test should be added for each of them.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new transition/transact functions (transition, transition...
null
FuelLabs__fuel-vm__473
FuelLabs/fuel-vm
473
defect
1a6490593347968c83dfb049f3e25732ce040fb3
63c44c5070042178d558766370ecd121e3bbf635
Disallow setting $sp < $ssp using CFS and CFSI instructions
This is a critical security bug that allows bypassing memory ownership protection completely. Exploiting this bug is trivial. Using the following code would make the whole VM memory writable using e.g. SB and SW instructions. This in turn allows for instance performing contract operations using different contracts i...
diff --git a/fuel-vm/src/interpreter/memory.rs b/fuel-vm/src/interpreter/memory.rs index 8196f5ad8e..a40ec99d64 100644 --- a/fuel-vm/src/interpreter/memory.rs +++ b/fuel-vm/src/interpreter/memory.rs @@ -213,8 +213,8 @@ where where F: FnOnce(Word, Word) -> (Word, bool), { - let (SystemRegisters...
2
2
0
[{"id": "G0", "claim": "It would be nice to add a new test case to test_stack_pointer_overflow covering the new ssp parameter.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should also update the CHANGELOG.", "category": "documentation...
null
FuelLabs__fuel-vm__498
FuelLabs/fuel-vm
498
defect
51480c09fc89c34feb81294dbf50c7846e94111c
0a0e2c25797f8f0dc683b7139678d5b2503bbe46
Add push/pop instructions
Experimenting with push/pop opcodes. See spec PR https://github.com/FuelLabs/fuel-specs/pull/499 and spec issue https://github.com/FuelLabs/fuel-specs/issues/407
diff --git a/CHANGELOG.md b/CHANGELOG.md index b031937993..d78a109849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ Description of the upcoming release here. - [#486](https://github.com/FuelLabs/fuel-vm/pull/486/): Adds `ed25519` signature verification and `secp256r1` signature recovery to `fuel-cry...
5
4
1
[{"id": "G0", "claim": "When sp equals hp the push hits a stack/heap collision the current `new_sp > *hp` check misses, and the reviewer suggests refactoring the validation logic from `stack_pointer_overflow` so it can be reused here.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intr...
null
FuelLabs__fuel-vm__500
FuelLabs/fuel-vm
500
defect
651351f74b0b3f112fd9676fefed9e077be71ee6
cdec1eac78da4128cfc3d20e48825d737bf85bde
enable parallel predicate verification
solves https://github.com/FuelLabs/fuel-core/issues/1087 vm part of the issue Introduced `ParallelExecutor` trait and made available async versions of verify and estimate predicates. Updated tests to test for both parallel and sequential execution. Fixed a bug as well in `transaction/check_predicate_owners`.
diff --git a/fuel-vm/Cargo.toml b/fuel-vm/Cargo.toml index 51d81b4091..f502c2d774 100644 --- a/fuel-vm/Cargo.toml +++ b/fuel-vm/Cargo.toml @@ -12,6 +12,7 @@ description = "FuelVM interpreter." [dependencies] anyhow = { version = "1.0", optional = true } +async-trait = "0.1" backtrace = { version = "0.3", optional ...
9
9
2
[{"id": "G0", "claim": "The new ParallelExecutor trait should not carry the generic TaskResult associated type, since the task result is already known at the use sites.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The predicate id (owner) verification ...
null
FuelLabs__fuel-vm__511
FuelLabs/fuel-vm
511
defect
20f1e9b888e359b9d1ac45214673e97277370543
c40bfe55e11c9325b2cac36b6b5cb5948d2d7c02
Return correct PanicReason on memory-related panics
Closes #38. Refactors the error handling code of multiple functions to leverage `MemoryRange` even more. Changes multiple panic reasons to be more accurate.
diff --git a/fuel-vm/src/interpreter/blockchain.rs b/fuel-vm/src/interpreter/blockchain.rs index 493dbd5063..d2c42f444e 100644 --- a/fuel-vm/src/interpreter/blockchain.rs +++ b/fuel-vm/src/interpreter/blockchain.rs @@ -19,6 +19,7 @@ use super::{ AppendReceipt, }, memory::{ + read_bytes, ...
6
2
2
[{"id": "G0", "claim": "The pull request could improve the `try_memory...` API to accept verified ranges, or drop the memory-range checks it adds at the blockchain.rs call sites (code copy and code root), since the access is checked again later.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope":...
null
FuelLabs__fuel-vm__525
FuelLabs/fuel-vm
525
defect
20f1e9b888e359b9d1ac45214673e97277370543
892b1ef7fbe9d89f35fb87dfe8831762f3350859
Do not restore $hp when returning from a context
Spec PR https://github.com/FuelLabs/fuel-specs/pull/506
diff --git a/fuel-vm/src/interpreter/flow.rs b/fuel-vm/src/interpreter/flow.rs index 6f1560a71b..954b629b2b 100644 --- a/fuel-vm/src/interpreter/flow.rs +++ b/fuel-vm/src/interpreter/flow.rs @@ -206,6 +206,7 @@ impl RetCtx<'_> { let ggas = registers[RegId::GGAS]; let ret = registers[RegId::RET...
1
1
0
[{"id": "G0", "claim": "The pull request should also update CHANGELOG.md with an entry for this change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FuelLabs__fuel-vm__6
FuelLabs/fuel-vm
6
defect
4aef54d43310d681010385c778b5ec86df800f9f
0801a8227aa25f2b4ff6fedfcb17270a8698788a
Struct refactor
* Fix `$fp` that was initialized to `$hp` during VM initialization. The initial `$fp` must be zero * Change the data trait to map `Contract + Color` to the balance value
diff --git a/src/data.rs b/src/data.rs index fc27a4bb3b..41bc6f1e3d 100644 --- a/src/data.rs +++ b/src/data.rs @@ -56,7 +56,11 @@ where /// When this trait is implemented, the underlying interpreter is guaranteed to /// have full functionality -pub trait InterpreterStorage: Storage<ContractId, Contract> + Storage<C...
4
3
2
[{"id": "G0", "claim": "internal_contract_color should return only a Color (cast from the contract at $fp), not a (ContractId, Color) tuple, because as written balance_sub subtracts the balance of the color read at MEM[$fp+32, 32] instead of the color derived from MEM[$fp, 32].", "category": "correctness", "verdict": "...
null
FuelLabs__fuel-vm__609
FuelLabs/fuel-vm
609
defect
33aec0c4ef8ffd62d86eaafe47d11c9b98a51a33
4da401c10de8b874eef46e55b49225b47cc3ebe0
feat: Enforce maximum tx size
Related issues: - https://github.com/FuelLabs/fuel-vm/issues/384
diff --git a/CHANGELOG.md b/CHANGELOG.md index ff8378799e..00bac6cd2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Changed + +#### Breaking + +- [#609](https://github.com/FuelLabs/fuel-vm/pull/609): Checked...
1
1
1
[{"id": "G0", "claim": "The `17 * 1024 * 1024` maximum transaction size should be part of the consensus parameters rather than hardcoded in the check.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
FuelLabs__fuel-vm__613
FuelLabs/fuel-vm
613
defect
bb991903a06a845bc5eac722b238228739c9c77c
670dba3265c3ab69eb2de2a8ba2141509c1068f1
feat: Charge for input signature verification (address recovery and predicate roots)
Related issues: - https://github.com/FuelLabs/fuel-vm/issues/599 This PR adds support for charging users for recovering addresses from signatures of signed inputs. For each signed input (non-predicate in effect), we charge the cost of an EC recovery. For each predicate input, we calculate the gas cost based on th...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d90e8f3975..4879de7fe1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). #### Breaking +- [#613](https://github.com/FuelLabs/fuel-vm/pull/613): Transaction fees now include the cost of...
6
5
2
[{"id": "G0", "claim": "The one-time signed-input helpers should not be added to the `Inputs` trait; instead the fee calculation should iterate over all inputs in a single loop, counting unique witnesses and charging for both signed inputs and predicate roots, with a dummy predicate cost (e.g. `contract_root`) already ...
null
FuelLabs__fuel-vm__618
FuelLabs/fuel-vm
618
defect
8880e5857c14807e7219e4d3b3311df45710c5c8
f5de586ab14a74dd6e542ac605756299af04d2da
feat: Charge for `Create` metadata
Related Issues: - https://github.com/FuelLabs/fuel-vm/issues/600 This PR extends the gas costs to include costs for contract state root and contract id. The gas costs are not final and will need to be calculated by running benchmarks on a dedicated instance.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 30b8b1542f..c433e92889 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). #### Breaking +- [#618](https://github.com/FuelLabs/fuel-vm/pull/618): Transaction fees for `Create` now includ...
2
2
2
[{"id": "G0", "claim": "Use a dependent cost for the hash function instead of the flat `contract_id` gas cost, since contract id calculation is simply the calling of the hash functions.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Get the contract's le...
null
FuelLabs__fuel-vm__622
FuelLabs/fuel-vm
622
defect
f77ef3e8b188d7540ce04a4c5fd74a22eb331da9
130127425334a3a75ad351993066175081bf6ea5
feat: Light and Heavy operation gas costs
Related issues: - https://github.com/FuelLabs/fuel-vm/issues/611
diff --git a/CHANGELOG.md b/CHANGELOG.md index e414c45a49..170907536e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). #### Breaking +- [#622](https://github.com/FuelLabs/fuel-vm/pull/622): Divide `DependentCost` into "light" and ...
2
2
1
[{"id": "G0", "claim": "The doc comment on the LightOperation `units_per_gas` field should read \"a single gas\" instead of \"a single unit of gas\", with `units_per_gas` in backticks.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "DependentCost::...
null
FuelLabs__fuel-vm__634
FuelLabs/fuel-vm
634
defect
187b60d96fa8618414c993f94e8337a79a8f8508
28603d9cbafe5b5080d420910bad4f072f665256
Charge for new storage bytes
Closes https://github.com/FuelLabs/fuel-vm/issues/602 Spec PR: https://github.com/FuelLabs/fuel-specs/pull/536 Breaking changes: * Gas is charged for new storage slots, `StorageSlot::LEN * gas_costs.new_storage_per_byte * num_slots` * Write opcodes now return the number of new storage slots instead of just a bool...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 942a9fc6dc..ef1e32fc0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - If the `witnessses_size > policies.witness_limit`, then transaction will be rejected. - GTF opcode chang...
7
5
4
[{"id": "G0", "claim": "The name of the new `new_storage_per_byte` gas-cost field is still subject to bikeshedding and may still be renamed.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The shared state-word context struct carries fields that ...
null
FuelLabs__fuel-vm__637
FuelLabs/fuel-vm
637
defect
39eb9c33e59e90c10be2baedc3704ab8b3eb153b
c96b906b8ccf1fe51e0941d10954f2659e6660c2
Charge for the actual size of the contract in `ccp` opcode
Duplicates https://github.com/FuelLabs/fuel-vm/pull/598 but for ccp
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6604854f4d..3486a3061f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Changed + +#### Breaking + +- [#637](https://github.com/FuelLabs/fuel-vm/pull/637): Charge ...
3
2
1
[{"id": "G0", "claim": "The inline comment should read \"the contract's size\" instead of the misspelled \"the contracts size\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Charging the base and then mutating it to 0 breaks encapsulation and ty...
null
FuelLabs__fuel-vm__673
FuelLabs/fuel-vm
673
defect
0ae8bc1d5317b12af4c375b487e42d021b016c4a
53a47e88856fffa59c8eef602b4d8b81c194fe0b
feat: Remove ContractsInfo
Related issues: - https://github.com/FuelLabs/fuel-core/issues/1654 - https://github.com/FuelLabs/fuel-core/issues/1552
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5403b56ede..004c4f1e7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Changed + +- [#1632](https://github.com/FuelLabs/fuel-core/pull/1632): Introduce a new enum...
3
3
0
[{"id": "G0", "claim": "The ContractsInfo table is not needed here since salt is not used in any logic and can simply be skipped, with that information kept fully off-chain.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The CROO gas cost needs to be u...
null
FuelLabs__fuel-vm__675
FuelLabs/fuel-vm
675
defect
0ae8bc1d5317b12af4c375b487e42d021b016c4a
ce9b626c8757fef4ee2deb0c61393876454e13c0
Add access to {asset_id,to,amount} fields for Variable and Change outputs
Closes https://github.com/FuelLabs/fuel-vm/issues/650
diff --git a/fuel-tx/src/transaction/types/output.rs b/fuel-tx/src/transaction/types/output.rs index 37fb79c340..714d8ed9a0 100644 --- a/fuel-tx/src/transaction/types/output.rs +++ b/fuel-tx/src/transaction/types/output.rs @@ -168,6 +168,10 @@ impl Output { matches!(self, Self::Coin { .. }) } + pub c...
2
2
2
[{"id": "G0", "claim": "GTFArgs::OutputCoinAmount returns zero for Change outputs because the change amount is not set until post-execution, so the PR should leave Change outputs out (panic) instead of returning a misleading zero.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
FuelLabs__fuel-vm__700
FuelLabs/fuel-vm
700
defect
714d9cdd9c069d060cde85bd3259916e5e8f4ac2
013ba34738aa4293dc63ec8aeb0fe25b8d312263
Add GM for base asset ID
Spec PR: https://github.com/FuelLabs/fuel-specs/pull/561
diff --git a/CHANGELOG.md b/CHANGELOG.md index a4f8a3d6fe..ee6905c32d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -279,6 +279,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). affected types. - [#588](https://github.com/FuelLabs/fuel-vm/pull/588): Re-worked the size calculation of the ...
4
2
1
[{"id": "G0", "claim": "The new GM argument variant is misspelled `BsaeAssetId` and should be renamed to `BaseAssetId`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The flattened match's catch-all arm returning ExpectedInternalContext could tr...
null
FuelLabs__fuel-vm__719
FuelLabs/fuel-vm
719
defect
2ee9c127c82ef61203cde8f56e60a7c33a0928a3
02cf3adc38a583441038b83d7405e79c8d98aad9
Handle padded_len_* overflows gracefully
There was a bug in `padded_len_word` and `padded_len_usize` functions that would overflow on inputs close to max value of the type. While inputs around the max value were never sensible, at least the LDC opcode could be used to trigger the overflow. ## Checklist - [x] Breaking changes are clearly marked as such in ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 754f421de7..6d914be688 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). #### Breaking +- [#719](https://github.com/FuelLabs/fuel-vm/pull/719): Fix overflow in `LDC` instruction when c...
4
1
0
[{"id": "G0", "claim": "The added `assert_ne!` cases in the coin/upgrade predicate-offset tests seem pointless, since a value is unequal to many things — why even include them?", "category": "testing", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Collapsing a `None` (overflow...
null
FuelLabs__fuel-vm__721
FuelLabs/fuel-vm
721
defect
747532ee39bc6e7b1e7b6f24f1313d1a27479fe5
36afa3d09ec76da1f93330660b102ed20da70111
test: BMT proof verify tests and additional verify logic
Closes: https://github.com/FuelLabs/fuel-vm/issues/716 This PR: - Adds additional logic to the `binary::verify` function to check the proof index against the length of the proof set. The proof index tells us the minimum size of the tree's leaf set. The provided proof set along the leaf-root path must be compatible...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 801f53110b..fe0a058762 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added +- [#721](https://github.com/FuelLabs/fuel-vm/pull/721): Added additional logic to the BMT proof verifi...
1
1
0
[{"id": "G0", "claim": "The test verify__returns_false_for_invalid_proof_of_last_leaf would be better if it used a random num_leaves (a random incorrect num_leaves) instead of always the fixed num_leaves + 1.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
FuelLabs__fuel-vm__736
FuelLabs/fuel-vm
736
defect
da27533925698646758bf777d6f58be1e15e2143
7dfd8c42dab824a0b851beb3ad0b387e245c22fe
Fix ldc opcode in internal contexts
LDC opcode was behaving incorrectly in internal contexts, i.e. when called from within a contract. https://github.com/FuelLabs/fuel-specs/pull/584 ## Checklist - [x] Breaking changes are clearly marked as such in the PR description and changelog - [x] New behavior is reflected in tests ### Before requesting ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 44f1f9e729..52e02c422a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - [#725](https://github.com/FuelLabs/fuel-vm/pull/725): `UtxoId::from_str` now rejects inputs with multiple `0x` pr...
4
2
0
[{"id": "G0", "claim": "The contract-code tests added/renamed by this PR should be written against the Interpreter instead of against the LoadContractCodeCtx helper context.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changelog entry for this PR sh...
null
FuelLabs__fuel-vm__751
FuelLabs/fuel-vm
751
defect
f6fed57dcba623a7e7f82e9312ce22d068f8ff11
de3f9444e67cc2f6b6fa02b77a9c4f78e43457fa
Add misc tests
Improves test coverage by testing some code paths that were not previously take. Will not contain any externally visible changes, only adding more tests and cleaning up existing ones. ### Before requesting review - [x] I have reviewed the code myself
diff --git a/CHANGELOG.md b/CHANGELOG.md index a59963430e..193343d118 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Added + +- [#751](https://github.com/FuelLabs/fuel-vm/pull/751): Improve test coverage. + ...
2
2
0
[{"id": "G0", "claim": "It would be nice to use constant names for the registers in the debug tests so the script instructions connect with the register values in `suite`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The transaction-building b...
null
FuelLabs__fuel-vm__753
FuelLabs/fuel-vm
753
defect
34f6ea5f1f7d2a0b8c3bf24dfe30b7d423d9ebf7
f1d431f1dbc9a3282f6bf28a16a4ba8ad8da7751
Fix a bug in CCP instruction
CCP instruction was not checking for ownership properly. This PR fixes the bug, and refactors the code a bit so that similar issues cannot occur again as easily. ## Checklist - [x] Breaking changes are clearly marked as such in the PR description and changelog - [x] New behavior is reflected in tests ### Before...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 193343d118..83f31dcd79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - [#751](https://github.com/FuelLabs/fuel-vm/pull/751): Improve test coverage. +### Changed + +- [#753](https...
3
2
1
[{"id": "G0", "claim": "The temporary audit-report POC test code_copy_ownership_overflow_poc duplicates the test above it and should be removed before merging.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "OwnershipRegisters::new silently falls back to...
null
FuelLabs__fuel-vm__783
FuelLabs/fuel-vm
783
defect
56d7deb66a70964d2b22de80299585f2b5d36fab
da8d90eef3f4adcb26735e42dd2341f4b9777e2c
Remove unnecessary look up for old values
The change adds new `replace` and `take` methods into the `StorageMutate` traits. These new methods work as the old ones. Old methods were changed to not return the value. Most of all, places that were using `insert` and `remove` don't need an old value. This helps to remove unnecessary lookups to the storage. An ex...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9733815006..574da0faa3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - [#781](https://github.com/FuelLabs/fuel-vm/pull/781): Added `base_asset_id` to checked metadata. +#...
1
1
0
[{"id": "G0", "claim": "The doc comment for `contract_state_replace` should read \"Insert a key-value mapping into a contract storage\" instead of \"in a contract storage\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
FuelLabs__fuels-rs__1074
FuelLabs/fuels-rs
1,074
defect
ff74fc71c352d2e5c4fcda4205290423b0cc6bb6
2ea8d4266e938d10faca1a52f3c3d4632b72b6c9
feat: make message input w data persist when covering fees
Closes #1059 I've extended the filtering conditions when replacing existing base inputs in `add_fee_coins` to not remove messages with data from the existing input set. I explored some options to make the interface for resources/coins less confusing but I think it's better addressed in a separate PR once #1069...
diff --git a/packages/fuels-accounts/src/accounts_utils.rs b/packages/fuels-accounts/src/accounts_utils.rs index a18f23457a..dca9584346 100644 --- a/packages/fuels-accounts/src/accounts_utils.rs +++ b/packages/fuels-accounts/src/accounts_utils.rs @@ -34,6 +34,9 @@ pub fn calculate_base_amount_with_fee( new_base_am...
2
2
0
[{"id": "G0", "claim": "The nested match in contains_data could be replaced with a flatter form using or-patterns that bind the message resource directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The unused binding in the test should be na...
null
FuelLabs__fuels-rs__1203
FuelLabs/fuels-rs
1,203
defect
d8704e1042577500e563e5450752607aa53e5bce
956d92559c189c2a7b2223ca0529b72ccbffc3a8
bug: cannot fetch mint transactions
closes #1199 Mint transactions can now be fetched through the `Provider`. Implemented what made sense for `Mint`, left the rest as `unimplemented!`. Without some hefty redesign don't see what other option is there but to violate the LSP (L for Liskov). Decided to wrap `Mint`, so that users may extract the id, ou...
diff --git a/packages/fuels-accounts/src/coin_cache.rs b/packages/fuels-accounts/src/coin_cache.rs index 921db892ab..5b2040bebb 100644 --- a/packages/fuels-accounts/src/coin_cache.rs +++ b/packages/fuels-accounts/src/coin_cache.rs @@ -1,10 +1,11 @@ -use std::collections::{HashMap, HashSet}; -use std::hash::{Hash, Hashe...
2
2
2
[{"id": "G0", "claim": "Public APIs exposed to users should return an error instead of panicking when called on Mint transactions.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Transaction implementation on TransactionType should be removed so ...
null
FuelLabs__fuels-rs__1396
FuelLabs/fuels-rs
1,396
defect
a893bb7cc92dbd1d1ebfe6db809b22509a6f909d
ba551aec2008888f6436e7693235f67928e2d95f
feat!: support static gas price setting in `NodeConfig`
Originally, this PR was aiming to solve several bugs and enables a static gas price in our tests so that we can catch said bugs. It was split into several smaller PRs: #1423, #1425, #1426 In it's current version, it only adds the static gas price config parameter to the node config and enables it in our tests. ...
diff --git a/docs/src/cookbook/transfer-all-assets.md b/docs/src/cookbook/transfer-all-assets.md index 9281e8ee6e..9d72852e53 100644 --- a/docs/src/cookbook/transfer-all-assets.md +++ b/docs/src/cookbook/transfer-all-assets.md @@ -12,7 +12,7 @@ We prepare two wallets with randomized addresses. Next, we want one of our ...
3
2
0
[{"id": "G0", "claim": "Remove the leftover `dbg!(&tx)` debug statement from the cookbook example.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Create an issue for the `// TODO: ADD THIS TO DOCS` comment left in the transaction builder.", "cat...
null
FuelLabs__fuels-rs__1562
FuelLabs/fuels-rs
1,562
defect
bacf2a1c1821866aca0f823ee198a1589c37bbbc
40d64e8b747904bc3241eb1dad9d648b4da3b929
feat!: prevent implicit burn
# Summary TransactionBuilder will return an error on `.build()` if the transaction has input assets that don't have a corresponding change output. To enable burning, `.enable_burn()` flag has to be set to `true`. # Breaking Changes Building transactions that implicitly burn coins will result in an error. `adjust...
diff --git a/e2e/tests/contracts.rs b/e2e/tests/contracts.rs index 74b9a4f748..11fd6db665 100644 --- a/e2e/tests/contracts.rs +++ b/e2e/tests/contracts.rs @@ -2,7 +2,7 @@ use std::time::Duration; use fuel_tx::{ consensus_parameters::{ConsensusParametersV1, FeeParametersV1}, - ConsensusParameters, FeeParamete...
1
1
1
[{"id": "G0", "claim": "Messages must be protected against implicit burning too, not just coins.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
FuelLabs__fuels-rs__1702
FuelLabs/fuels-rs
1,702
defect
865e00c295de8b4a0a1ef7ac926c3c8266d5151b
8a69b70cdb85360ac8040642afc05c8be5b8e94e
Add multi-URL client connect method.
<!-- List the issues this PR closes (if any) in a bullet list format, e.g.: - Closes #ABCD - Closes #EFGH --> # Summary Add multi-URL client connect method. # Breaking Changes <!-- If the PR has breaking changes, please detail them in this section and remove this comment. Remove this section if the...
diff --git a/Cargo.toml b/Cargo.toml index c863b419b..66167917a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -94,14 +94,14 @@ testcontainers = { version = "0.23", default-features = false } k256 = { version = "0.13", default-features = false } # Dependencies from the `fuel-core` repository: -fuel-core = { version = ...
4
2
1
[{"id": "G0", "claim": "All fuel-core-* dependencies were switched from versioned crates to git dependencies pinned to a revision, which blocks publishing to crates.io and would need to be reverted to versioned dependencies before any release.", "category": "release", "verdict": "uncertain", "priority": "P2", "scope": ...
null
FuelLabs__fuels-rs__386
FuelLabs/fuels-rs
386
defect
7b4012f1bd687c519dd1cafd623796b0977ffd7b
44c929d70b3e3b1602b8440fcd909932f10a5c5f
feat!: actually forward gas on contract call
Closes #184 This PR adds the field `gas_limit` to `CallParameters`. `gas_limit` is forwarded to the `CALL` instruction when generating the script for performing a contract call. The difference between transaction gas limit and call gas limit is that the former applies to costs of the whole transaction while the lat...
diff --git a/docs/src/getting-started/basics.md b/docs/src/getting-started/basics.md index 577e4ebcf9..8aa3865994 100644 --- a/docs/src/getting-started/basics.md +++ b/docs/src/getting-started/basics.md @@ -135,6 +135,7 @@ Call parameters are: 1. Amount; 2. Asset ID; +3. Gas limit This is commonly used to forwar...
11
11
3
[{"id": "G0", "claim": "Docs examples should use the `include` tag and put the code in `examples/` so that the examples are tested.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs example uses `NATIVE_ASSET_ID` although the constant is now...
null
FuelLabs__fuels-rs__398
FuelLabs/fuels-rs
398
defect
1e2223dbe724d828c6a9d714662a475ef492c8b2
14c79f05ddb95a22fa789cb3848d82ef1abce813
docs: migrate all examples
This PR closes #342. - All examples in `The Book` now use the `examples` directory. Some reorganization of that structure might/should happen down the road, but for now the idea is to just move forward with using only tested code in `The Book`. Apologies in advance, this PR will probably be *hell* to rev...
diff --git a/Cargo.toml b/Cargo.toml index 068d4115b4..ef457d20c0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,4 +18,5 @@ members = [ "scripts/build-test-projects", "examples/contracts", "examples/wallets", + "examples/rust_bindings", ] diff --git a/docs/src/getting-started/basics.md b/docs/src/ge...
2
1
1
[{"id": "G0", "claim": "The branch has merge conflicts with master and they must be resolved (noted repeatedly as S1 through S5 was reviewed).", "category": "build", "verdict": "uncertain", "priority": "P3", "scope": "unclear"}, {"id": "G1", "claim": "CI is failing and the failure should be fixed before the pull reques...
null
FuelLabs__fuels-rs__399
FuelLabs/fuels-rs
399
defect
c60443ea1bb0fb82ac09d1b24c7a166713d3709f
0a32f151996205a9a08baf2cedf6731b213105d4
Multi-call
Closes #211 This PR introduces the `MultiContractCallHandler` for bundling contract calls into a single transaction. It provides a similar interface to `ContractCallHandler`. ```rust let call_handler_1 = contract_instance.initialize_counter(42); let call_handler_2 = contract_instance.get_array([42; 2].to_vec())...
diff --git a/packages/fuels-abigen-macro/tests/harness.rs b/packages/fuels-abigen-macro/tests/harness.rs index 674eaff71a..8613c78ff8 100644 --- a/packages/fuels-abigen-macro/tests/harness.rs +++ b/packages/fuels-abigen-macro/tests/harness.rs @@ -1,7 +1,5 @@ use fuel_gql_client::fuel_tx::{AssetId, ContractId, Receipt}...
5
4
1
[{"id": "G1", "claim": "get_script() will panic (bare unwrap) if called before any call has been added, so add a .expect with a message telling the caller to add calls first.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "Split call()/simulate() so ...
null