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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
vitessio__vitess__19674 | vitessio/vitess | 19,674 | defect | 6fc1442de8374f65df290ac6ccf989b7bf9b1bc9 | 38fca1e382b9882f25fbbf4754c8f0586e1e18af | VTGate: fix warming reads timeout context | ## Description
Fixes the warming reads timeout context so it actually works as intended.
`CloneForReplicaWarming()` was creating a `context.WithTimeout` using the `--warming-reads-query-timeout` flag value, but:
1. The `cancel` func was discarded _(suppressed with `//nolint`)_, leaking the timeout goroutine
2. The t... | diff --git a/go/vt/vtgate/engine/fake_vcursor_test.go b/go/vt/vtgate/engine/fake_vcursor_test.go
index 1ef5430be8f..30b1927ee97 100644
--- a/go/vt/vtgate/engine/fake_vcursor_test.go
+++ b/go/vt/vtgate/engine/fake_vcursor_test.go
@@ -120,7 +120,7 @@ func (t *noopVCursor) GetWarmingReadsChannel() chan bool {
panic("imp... | 3 | 2 | 1 | [{"id": "G0", "claim": "The warming context returned from CloneForReplicaWarming is never canceled, so each warming read keeps its timeout timer alive until it naturally fires (even when the read is dropped, since the clone/timeout is created before the select); create the warming VCursor/context inside the goroutine a... | null |
vitessio__vitess__19713 | vitessio/vitess | 19,713 | defect | 3e92db9dca71b39963dc789a8618e56e53d9a5cf | a07b4631050cc0bbcdf0ed2a9a282a45d3c209b7 | go/vt/mysqlctl: run backup init sql after catchup, disable super readonly |
<!--
Thank you for your contribution to the Vitess project.
How to contribute: https://vitess.io/docs/contributing/
Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR.
If this is a new feature, please mark the Issue as "RFC".
-->
<!-- if this PR is Work in P... | diff --git a/go/cmd/vtbackup/cli/vtbackup.go b/go/cmd/vtbackup/cli/vtbackup.go
index f17c5242017..dfda73ca572 100644
--- a/go/cmd/vtbackup/cli/vtbackup.go
+++ b/go/cmd/vtbackup/cli/vtbackup.go
@@ -517,11 +517,6 @@ func takeBackup(ctx, backgroundCtx context.Context, topoServer *topo.Server, bac
}
}
- // Perform a... | 13 | 9 | 6 | [{"id": "G0", "claim": "The inline comment still says 'pre backup initialization queries' and the flag help text still says 'before initializing the backup', although the queries now execute after catch-up replication, so both should be updated to match the new execution point.", "category": "documentation", "verdict":... | null |
vitessio__vitess__19811 | vitessio/vitess | 19,811 | defect | 72756d809e1ed6f36c8dfc047a08dfcd356b26bf | 7f15b2b1b6500be0f7f65c698c583dd42b320851 | feat: add connection pool waiter cap to limit queued requests | ## Description
Adds a configurable maximum number of clients that can wait for a connection from each pool (query, stream, transaction). When the cap is reached, new requests are immediately rejected with RESOURCE_EXHAUSTED instead of queuing indefinitely. This prevents unbounded queue growth under heavy load. A value... | diff --git a/go/flags/endtoend/vtcombo.txt b/go/flags/endtoend/vtcombo.txt
index e8274f912d3..2e87b8f106f 100644
--- a/go/flags/endtoend/vtcombo.txt
+++ b/go/flags/endtoend/vtcombo.txt
@@ -302,6 +302,7 @@ Flags:
--queryserver-config-query-cache-memory int query server query cache size in b... | 8 | 5 | 2 | [{"id": "G0", "claim": "The pull request removed the waitCount metric increment (recordWait) from pool.go; what happened to that metric?", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "onWait() (the waitCount metric) is invoked before the locked cap ch... | null |
vitessio__vitess__19820 | vitessio/vitess | 19,820 | defect | 91522dd797bcb03cd6ba9227eed545757119c37f | dcdb792977e01459a61aa533175eb55307e8fbe9 | go-upgrade: fix Go image digest rewrite matching |
<!--
Thank you for your contribution to the Vitess project.
How to contribute: https://vitess.io/docs/contributing/
Please first make sure there is an open Issue to discuss the feature/fix suggested in this PR.
If this is a new feature, please mark the Issue as "RFC".
-->
<!-- if this PR is Work in Progress... | diff --git a/go/tools/go-upgrade/go-upgrade.go b/go/tools/go-upgrade/go-upgrade.go
index bbb18e52e01..3aa9492fac9 100644
--- a/go/tools/go-upgrade/go-upgrade.go
+++ b/go/tools/go-upgrade/go-upgrade.go
@@ -45,9 +45,6 @@ const (
// dockerPlatformArch is the target architecture for the Go base image.
dockerPlatformArc... | 6 | 3 | 1 | [{"id": "G0", "claim": "The new regex matches any `FROM --platform=...` while digest resolution stays hard-coded to linux/amd64, so non-amd64 references would be rewritten with an amd64 digest; the matcher should be constrained back to amd64 or the platform passed into digest resolution.", "category": "correctness", "v... | null |
vitessio__vitess__19848 | vitessio/vitess | 19,848 | defect | 0c32134bfa02631828001db75eee295a586da95d | 2d1c38922774a2f4e079715b2b2f4f3642cfd9ca | `EmergencyReparentShard`: fix nil pointer panic in errant GTID detection | ## Description
Fixes a logic bug in `findErrantGTIDs()` where `||` was used instead of `&&` when checking if another candidate's `*RelayLogPositions` is non-nil and non-zero
When `otherPosition` is `nil`, the left side of `||` evaluates to `false`, so Go evaluates the right side: `!otherPosition.IsZero()` — calli... | diff --git a/go/vt/vtctl/reparentutil/emergency_reparenter.go b/go/vt/vtctl/reparentutil/emergency_reparenter.go
index 01aed70c4e4..bef33f14feb 100644
--- a/go/vt/vtctl/reparentutil/emergency_reparenter.go
+++ b/go/vt/vtctl/reparentutil/emergency_reparenter.go
@@ -933,7 +933,7 @@ func (erp *EmergencyReparenter) findErr... | 1 | 1 | 1 | [{"id": "G0", "claim": "The nil-pointer fix is incomplete: if nil entries in validCandidates are reachable, findErrantGTIDs still dereferences validCandidates[alias].Combined unconditionally in the lagged-candidate pass and can still panic for any non-maxLen nil entry, and the new regression test would not catch it bec... | null |
vitest-dev__eslint-plugin-vitest__770 | vitest-dev/eslint-plugin-vitest | 770 | defect | f57ce1a45a29cd0df44955bd45552f2349b91ae4 | 1188194622acef71e12e979b6fc4d986297b829e | Prefer import in mock | close #769 | diff --git a/src/index.ts b/src/index.ts
index cbbcf92a..03816e69 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -73,8 +73,10 @@ import preferCalledOnce, { RULE_NAME as preferCalledOnceName } from './rules/pre
import preferCalledTimes, { RULE_NAME as preferCalledTimesName } from './rules/prefer-called-times'
import ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Please write a simple docs file for the new prefer-import-in-mock rule under the /docs directory.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vitest-dev__eslint-plugin-vitest__793 | vitest-dev/eslint-plugin-vitest | 793 | defect | 506209ba5a40a04c405b55e0b811eff2ac52a481 | a2a01c8d529df55b189f66d209d89535e013a311 | feat: add support for custom vitest imports | If we use custom fixtures in a separate file and import `test` from there instead of `vitest`, many rules don't work properly anymore because they expect the functions being imported from `vitest`. This PR adds a new `vitestImports` setting that allows specifying additional import patterns that will be detected as Vite... | diff --git a/README.md b/README.md
index a91ab4e0..2e0975dc 100644
--- a/README.md
+++ b/README.md
@@ -105,6 +105,31 @@ export default [
]
```
+### Custom Fixtures
+
+If you're using custom fixtures in a separate file and importing them in your tests, you can let the plugin know about them by adding them to the `vi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The author should run the format command, since the added code (e.g. the isVitestImport expression in src/utils/parse-vitest-fn-call.ts) is not formatted to the project's style.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vitest-dev__eslint-plugin-vitest__826 | vitest-dev/eslint-plugin-vitest | 826 | defect | 5e5a64bc51b6424ba0b480cb91f7384ba03b4565 | 492a274d16f73d201d48a5617f24091e7d2b0a51 | feat: add rule consistent-each-for | Closes #702
Add `vitest/consistent-each-for` rule to enforce consistent usage of `.each` or `.for` for parameterized tests across `test`, `it`, `describe`, and `suite` functions.
```
{
'vitest/consistent-each-for': ['warn', { test: 'for', describe: 'each' }]
}
``` | diff --git a/README.md b/README.md
index c6e13fc1..6a394b12 100644
--- a/README.md
+++ b/README.md
@@ -187,6 +187,7 @@ export default defineConfig({
| Name | Description ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The internal type aliases EachOrFor and BaseFnName in src/rules/consistent-each-for.ts are exported with no apparent reason and should not be exported (or a reason given).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `as con... | null |
vivisect__vivisect__231 | vivisect/vivisect | 231 | defect | 7d8e59a02cc4b2a6d09bbae88b1bc348cf97f35b | 7ffa24ced0b3094ccb41cb46acce9a245a792253 | vamp signature updates | * Adds a small test for the envi/bytesig.py code
* In the case where you had signatures A, B, and C, where A is a subset of B, and B is a subset of C, you'd get various IndexErrors when either adding them to the know sigs or matching against them.
* Fix a display issue in the README
* For the genSigAndMask, allow fo... | diff --git a/README.md b/README.md
index 864e6449a..c9b75f85f 100644
--- a/README.md
+++ b/README.md
@@ -28,13 +28,17 @@ framework for PE/Elf/Mach-O/Blob binary formats on various architectures.
To start with, you probably want to run a "bulk analysis" pass on a binary
using:
-> python vivbin -B <binaryfile>
+```
+... | 5 | 5 | 2 | [{"id": "G0", "claim": "Validating startva by comparing the code block's single function field is a trap because Viv currently tracks only one possible function per code block; the check should instead verify the code block is among the function's code blocks, e.g. via vw.getFunctionBlocks(funcva).", "category": "corre... | null |
vivisect__vivisect__252 | vivisect/vivisect | 252 | defect | b07181ccfa0425cfa2e75e9e28719db4210ed266 | e4e269aec92ed880c2c48d8915ed78a3400d91e5 | AES-NI support | * Adds decoding support and tests for AES-NI in i386
* Fixes an issue in envi/memory.py when we hit a mismatched read length, we throw an attribute error since the VivCli object has no getProgramCounter function. | diff --git a/envi/archs/i386/opcode86.py b/envi/archs/i386/opcode86.py
index f20f9612d..2c8383103 100644
--- a/envi/archs/i386/opcode86.py
+++ b/envi/archs/i386/opcode86.py
@@ -908,41 +908,44 @@
"""
(optable, optype, operand 0, operand 1, operand 2, CPU required, "opcodename", op0Register, op1Register, op2Register)
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new AES-NI opcode-table entries should use lowercase hex index literals instead of the uppercase ones (e.g. tbl32_660F38[0xDB] as tbl32_660F38[0xdb]), since the pull request is already making an aesthetic change.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "intr... | null |
vivisect__vivisect__283 | vivisect/vivisect | 283 | defect | 0d543d5bd0f2e4021b0d97255cc429715aa5c7d9 | 1660973ce45c19cc6f497db9f2ba5eb72610f437 | Makecode update | A tiny bit of cleanup, but mostly changing makeCode to allow for a function to be passed in, where the new fragment will be linked to the function instead of being a standalone fragment (this is in support of a few switchcase updates that are hurdling down the pike).
And among those, this also introduces two new VaS... | diff --git a/vivisect/__init__.py b/vivisect/__init__.py
index 6d4724716..ee5fdd8f4 100644
--- a/vivisect/__init__.py
+++ b/vivisect/__init__.py
@@ -149,6 +149,8 @@ def __init__(self):
self.addVaSet("Bookmarks", (("va", VASET_ADDRESS), ("Bookmark Name", VASET_STRING)))
self.addVaSet('DynamicBranches',... | 3 | 1 | 0 | [{"id": "G0", "claim": "The swap of the `tried` dict for a set in emucode.analyze should be justified by performance, as checked by the posted set-vs-dict membership benchmark.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "PLT functions show up in ... | null |
vivisect__vivisect__291 | vivisect/vivisect | 291 | defect | e624bdbcd19ba1366b1ea1d03e38118da989e80b | 45064725c2cf2a3f8e9b040beca17f51b842f721 | Bug Squashing | A lot of little things in support of #283
* param name on pinsrb fix
* If we don't have a calling convention for a called function while in emulator town, we descend into the sub-function, ignoring `emu._func_only`. Probably shouldn't do that.
* add isFunctionThunk for ease of use
* The order of some of the more s... | diff --git a/envi/__init__.py b/envi/__init__.py
index f8ce73636..69018fc88 100644
--- a/envi/__init__.py
+++ b/envi/__init__.py
@@ -1155,7 +1155,7 @@ def setupCall(self, emu, args=None, ra=None):
ra = emu.getProgramCounter()
self.allocateCallSpace(emu, argc)
- self.setCallArgsRet(emu, ar... | 8 | 5 | 1 | [{"id": "G0", "claim": "Renaming the calling conventions could cause backward compatibility breaks, and it is questionable whether the new registrations are strictly necessary.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The names of the new caller-clea... | null |
vivisect__vivisect__309 | vivisect/vivisect | 309 | defect | 6024e0a457d7a922ab2b3f77d96788a50d267827 | 80dc959686fc1194603d0ca8943d0228cf139d13 | setSymKid Speedup | So on very nearly straight-line code, the AST grows to a astronomical size, and reduction or even just walking the AST takes forever (or several hours, which isn't particularly helpful). This is an initial attempt to fix that.
It's only 4 lines, but on large ASTs it's a massive speed up since we won't traverse up to... | diff --git a/vivisect/symboliks/common.py b/vivisect/symboliks/common.py
index 84e9ee78b..ddb7e5a56 100644
--- a/vivisect/symboliks/common.py
+++ b/vivisect/symboliks/common.py
@@ -249,7 +249,7 @@ def setSymKid(self, idx, kid):
todo = collections.OrderedDict({p._sym_id: p for p in oldkid.parents})
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new parent-cache-clearing loop in setSymKid is ripe for comments and needs its logic detailed out.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is unclear whether switching popitem() to popitem(last=False) makes a ... | null |
vivisect__vivisect__320 | vivisect/vivisect | 320 | defect | 8a28f46f76f60feb236bb8a5786feaad33346aaa | 94544ad8865f73ea97c8efe0eae8d1bc178e6828 | Bug hunting | * We bail on first failure when carving up a PE file looking for embedded PE files, but in py3 land it's easy for that to fail and thus we'd bail on finding embeded PEs.
* makePointer returns the tuple of the created location, so we shouldn't pass that into other APIs that typically expect an int. py2 may allow this a... | diff --git a/PE/carve.py b/PE/carve.py
index 585f55e80..476465a00 100644
--- a/PE/carve.py
+++ b/PE/carve.py
@@ -39,6 +39,10 @@ def carve(pbytes, offset=0):
newoff = struct.unpack('<I', xorstatic( pbytes[e_lfanew : e_lfanew + 4], i))[0]
+ nextres = pbytes.find(mzx, off+1)
+ if nextres != -1:
... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a small unittest to prove the correct behavior of the carve re-queue logic in PE/carve.py.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vivisect__vivisect__327 | vivisect/vivisect | 327 | defect | db708eb31da8dba90e27973be1a7dc59b06dfcee | f19829eca45ef88d104ff7be77005444ee9fc263 | WIP: Substring locations | @atlas0fd00m general thoughts? The unicode portion should be much the same, but I figured it's better to get feedback on the idea now. | diff --git a/vivisect/__init__.py b/vivisect/__init__.py
index 2983a6955..6444b5775 100644
--- a/vivisect/__init__.py
+++ b/vivisect/__init__.py
@@ -920,6 +920,12 @@ def detectString(self, va):
if loc[L_LTYPE] == LOC_STRING:
if loc[L_VA] == va:
... | 6 | 3 | 0 | [{"id": "G0", "claim": "The new substring detection should come with an explanation of the string-within-string use cases and how they are handled, including whether a little string in the middle of an existing big string is caught (ditto for the unicode variant).", "category": "documentation", "verdict": "supported", ... | null |
vivisect__vivisect__332 | vivisect/vivisect | 332 | defect | d35d6e57e652d27c3f5860d6b8c968c39d478138 | 1457b79ef58c72b57629ee96606743c376a57601 | Misc. Small Fixes | * Decoding fixes for rdrand/rseed
* Small speedup for setSymKid | diff --git a/envi/archs/amd64/opcode64.py b/envi/archs/amd64/opcode64.py
index 6b446fd9b..922d12c5f 100644
--- a/envi/archs/amd64/opcode64.py
+++ b/envi/archs/amd64/opcode64.py
@@ -1336,8 +1336,8 @@
tbl32_F30FC7_rest = list( tbl32_0FC7_rest )
-desc_0FC7_00BF = (tbl32_0FC7_00BF, 3,3, 0x07, 0, 0xbf, TBL_0FC7_rest)... | 1 | 1 | 0 | [{"id": "G0", "claim": "The replacement of OrderedDict with a plain dict in setSymKid may have zero effect, so confirm the change has no functional impact.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vivisect__vivisect__338 | vivisect/vivisect | 338 | defect | a136bb8375f23d7c2d7d5d3fb9e10023214748a3 | 10dae44b82313334f1fdf642b323486cfc3fe072 | PE size fixes to getMaxRva(), offsetToRva(), and rvaToOffset() | offsetToRva() and rvaToOffset() can be misled by relying on PointerToRawData in a section. Sometimes this number is too small, causing the functions to reject an address as out of bounds. We have about 7800 malware samples where this happened. The fix adopted here matches the fix in the pefile project (https://githu... | diff --git a/PE/__init__.py b/PE/__init__.py
index e21ff608e..9a7beb21e 100644
--- a/PE/__init__.py
+++ b/PE/__init__.py
@@ -385,6 +385,7 @@ def __init__(self, fd, inmem=False):
object.__init__(self)
self.inmem = inmem
self.filesize = None
+ self.max_rva = None
if not inmem:... | 2 | 2 | 2 | [{"id": "G0", "claim": "In getMaxRva(), the division in `sec_end = align * ((sec_end / align) + 1)` should be a double slash or wrapped in int() so the value stays an int when the project moves to Python 3.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai... | null |
vivisect__vivisect__343 | vivisect/vivisect | 343 | defect | 5a6787659fea169bd57ef186239414788bc25d95 | 1de89d5d1724613109e1d4e4b6f2d683035c18e3 | srec parser support | much like IHEX, but slightly different.
* added SREC vstruct def
* added SREC viv parser
* modified vivbin to accept multiple -O options
* modified IHEX parser/def to use v_str instead of v_bytes, because v_bytes displays hex... which in this case turns into "hex of hex", eg. 3330 for the hex byte "30" that SREC... | diff --git a/vivisect/analysis/__init__.py b/vivisect/analysis/__init__.py
index 4d56638a4..22ced1815 100644
--- a/vivisect/analysis/__init__.py
+++ b/vivisect/analysis/__init__.py
@@ -182,7 +182,23 @@ def addAnalysisModules(vw):
vw.addFuncAnalysisModule("vivisect.analysis.generic.impapi")
vw.addFuncA... | 10 | 8 | 3 | [{"id": "G0", "claim": "The offset key should be duplicated into the ihex section of defconfig as well, mirroring the srec section.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "parsers/srec.py sets up a logger but the reviewer sees no logging ... | null |
vivisect__vivisect__365 | vivisect/vivisect | 365 | defect | 38a3fc23dbe79cd55335b57aa3587c05f3fb1d72 | 14ad4a3a68e4c6256f2c91c575f1207ee68f09d1 | Even more cleanup | * UI updates to make arrow keys and what not work again
* A logging update I promised atlas a while ago
* Reduce the taint value range. That's the cause of a couple infinite recursion issues. | diff --git a/envi/memcanvas/__init__.py b/envi/memcanvas/__init__.py
index e00af96b0..51553d615 100644
--- a/envi/memcanvas/__init__.py
+++ b/envi/memcanvas/__init__.py
@@ -81,7 +81,7 @@ def setNavCallback(self, callback):
'''
Set a navigation "callback" that will be called with
a memory expr... | 3 | 1 | 1 | [{"id": "G0", "claim": "The PR's tightening of taint spacing (taintoffset 0x1000 -> 0x10, taintmask widened) should be reverted or explained, because the large separation is what allows tracking taints as they are modified (e.g. <foo+352>).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":... | null |
vivisect__vivisect__375 | vivisect/vivisect | 375 | defect | 6b2145268976e4748eabfb9470a4edcc19bf36ff | c3d9b523e96aeef2d28b647d7c83963da5bf8099 | Backport emu fixes | Back the emu fixes that came up, also add conversion tool for going from basicfile to msgpack (or vice versa), since msgpack is py3 compatible (at least from a quick glance) while basicfile is not (cuz pickle).
Readme updates for some of this will go onto master. But this should be one of the last few py2 branches.
... | diff --git a/vivisect/__init__.py b/vivisect/__init__.py
index da8aa5051..e2b8ce6f1 100644
--- a/vivisect/__init__.py
+++ b/vivisect/__init__.py
@@ -2623,6 +2623,8 @@ def loadFromFile(self, filename, fmtname=None, baseaddr=None):
fmtname = viv_parsers.guessFormatFilename(filename)
if fmtname in ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The checks for newaddr and retn use different pointer-check calls (self.vw.isValidPointer vs self.isValidPointer) and, unless they are functionally different, should be consistent.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vivisect__vivisect__377 | vivisect/vivisect | 377 | defect | 2bf75aac8db2f14044168a3741dc844ddf25bcf2 | 341de16fd0b322c2304b1866593bbb622a19101b | Remote Fixes and smaller bits of cleanup | * cobra/dcode was missing `import imp`
* little bits of cleanup here and there
* Move over the conversion script from py
* fixes to make remote stuff work again (and tests for such)
* On emulation discovered functoins/imports, add a code xref, too
* makeOpcode/addAnalysisResults were sometimes making numbers out o... | diff --git a/cobra/__init__.py b/cobra/__init__.py
index d0482503f..bcebc6343 100644
--- a/cobra/__init__.py
+++ b/cobra/__init__.py
@@ -748,8 +748,8 @@ def handleClient(self):
mtype,name,data = csock.recvMessage()
except CobraClosedException:
break
- except soc... | 11 | 10 | 3 | [{"id": "G0", "claim": "The new string-guessing block in makeOpcode contains leftover development code (import pdb / pdb.post_mortem on any exception) that should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new opcache has no supp... | null |
vivisect__vivisect__39 | vivisect/vivisect | 39 | defect | fe7b972e1f5e36b2db411b5c5021391682220506 | 4309758365e1d7efa5d0ef33e96c7870ac78028b | fixes api definitions for reg/stack mixed calling i386 conventions. shou... | ...ld not change symboliks.
this will be most noticeable in the gui rendering of arg-accessing opcodes.
| diff --git a/envi/__init__.py b/envi/__init__.py
index 573603168..2f77b0af1 100644
--- a/envi/__init__.py
+++ b/envi/__init__.py
@@ -753,6 +753,14 @@ def getNumStackArgs(self, emu, argc):
rargs = [ v for (t, v) in self.arg_def if t == CC_REG ]
return max(argc - len(rargs), 0)
+ def getStackArgOff... | 3 | 3 | 0 | [{"id": "G0", "claim": "M001 asks whether getStackArgOffset could instead be a statically declared class-local value (or a default implementation simply returning declared class-locals such as 0, which conventions like msfastcall could declare as 12); M003 says the author will change it to a class-local if the reviewer... | null |
vivisect__vivisect__394 | vivisect/vivisect | 394 | defect | 12fb36f7644a9a9ae185abd937f62bba7e0937ff | 7db9b24682eacef1a8e3fae816fac84ef26d14ff | WIP: various i386 emu bugfixes | bugfix: writing to metaregisters doesn't mask the value written to the right size
bugfix: rcl/rcr not handling shift calculations correctly (sometimes ending in negative shift)
bugfix: ror not handling shifting correctly (ending in losing bits)
bugfix: push and pop don't handle sizes other than self.psize (which is ... | diff --git a/envi/archs/i386/emu.py b/envi/archs/i386/emu.py
index f6a48d4cd..2e4a0c7ea 100755
--- a/envi/archs/i386/emu.py
+++ b/envi/archs/i386/emu.py
@@ -16,9 +16,21 @@
def shiftMask(val, size):
if size == 1:
- return (val & 0x1f) % 9
+ return (val & 0x1f) % 8
elif size == 2:
- retu... | 3 | 3 | 2 | [{"id": "G0", "claim": "The newly added shiftMask/shiftMaskRC helpers are never called anywhere, so i_rcl and i_rcr should use them instead of the inline masking (or the vestigial helpers should be deleted).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
vivisect__vivisect__395 | vivisect/vivisect | 395 | defect | 12fb36f7644a9a9ae185abd937f62bba7e0937ff | 7d24c3dc34f8b992ccd8493857871a35d80a7f04 | Emulator Tests and Cleanup | * Standalone emulator tests
* Couple emulator fixes that might be duplicated in #394
* Docstring fixes and snap() function
* Deal with annoying test output and a deprecation warning (#397, thanks for spotting that @williballenthin) | diff --git a/envi/__init__.py b/envi/__init__.py
index 83244f246..a6432148a 100644
--- a/envi/__init__.py
+++ b/envi/__init__.py
@@ -5,8 +5,9 @@
import types
import struct
-import platform
import logging
+import platform
+import contextlib
from envi.exc import *
@@ -600,9 +601,19 @@ def setEmuSnap(self, snap)... | 2 | 1 | 1 | [{"id": "G0", "claim": "The change of the pointer-skip log lines from logger.info to logger.debug in vivisect/analysis/generic/pointers.py looks unintended (accidental copy-paste or a desire for more logging).", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cla... | null |
vivisect__vivisect__396 | vivisect/vivisect | 396 | defect | 12fb36f7644a9a9ae185abd937f62bba7e0937ff | 1550c354388146cce76472f88d924d9f9509f0ab | Saved Structures | * Save the section header information as actual structures in the workspace. Was kinda annoying that those weren't showing up in the memory view.
* Plumb saving the actual bytes of the file and the parsed binary through the event system. It's not that elegant right now, since I'm basically hijacking the VWE_SETMETA ev... | diff --git a/Elf/__init__.py b/Elf/__init__.py
index c728408d8..d67b23f4f 100644
--- a/Elf/__init__.py
+++ b/Elf/__init__.py
@@ -18,6 +18,7 @@
"""
# Copyright (C) 2007 Invisigoth - See LICENSE file for details
+import io
import logging
from stat import *
@@ -315,6 +316,19 @@ def __del__(self):
except:
... | 4 | 2 | 1 | [{"id": "G0", "claim": "If the original file bytes are stored in workspace meta, they should be stored compressed rather than as raw base64 data.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "Loading a workspace over the network (Server or SharedWo... | null |
vivisect__vivisect__402 | vivisect/vivisect | 402 | defect | 1cd994946a3ca7d43ed7e1cb1146a27c2f499181 | 06cda35bf9a2f185b909bdb222d69f0e21afa4ff | Speed ups | 3 main things in this PR:
* I wanted to bring up caching opcodes again since we do that all over the place and it would be good to try and make that as fast as possible without inducing a bunch of cache thrashing.
* There are some experimental changes to symboliks that I wanted to discuss that hopefully speed things ... | diff --git a/visgraph/exc.py b/visgraph/exc.py
index 585cf9cc0..695c9e016 100644
--- a/visgraph/exc.py
+++ b/visgraph/exc.py
@@ -11,7 +11,7 @@ class NodeNonExistant(VisGraphException):
def __init__(self, nodeid):
self.nodeid = nodeid
Exception.__init__(self, 'Node %d does not exist!' % nodeid)
- ... | 8 | 4 | 2 | [{"id": "G0", "claim": "The `foo` parameter of `reduce()` is a meaningless name and should be renamed to say what it does.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Caching parsed opcodes keyed only on the address is dangerous with self-m... | null |
vivisect__vivisect__412 | vivisect/vivisect | 412 | defect | 726afe014aee77dafe745380daa293c363b3eae3 | 56a39f50fceb7b5eca038d57d2eb342d2d2c4d8f | Fix vstruct number issue | Hey look, an actually somewhat targeted PR for once!
But seriously, @atlas0fd00m found a bug in vstruct emitting for signed numbers. Took the delta he submitted and carried it over the finish line with some tests, and wrapped in a couple other fixes. One for when we don't have a vs_fmt for numbers (old ord call that... | diff --git a/vstruct/primitives.py b/vstruct/primitives.py
index a5e0fafad..9b6790d91 100644
--- a/vstruct/primitives.py
+++ b/vstruct/primitives.py
@@ -123,16 +123,33 @@ def __hash__(self):
num_fmts = {
+ # big endian unsigned
(True, 1): '>B',
(True, 2): '>H',
(True, 4): '>I',
(True, 8): '>... | 2 | 1 | 1 | [{"id": "G0", "claim": "The reviewer questions the constructor's switch to vsSetValue(value) instead of a direct assignment — asking whether it is just a preference or was needed because it was causing issues.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
vivisect__vivisect__436 | vivisect/vivisect | 436 | defect | ad6fbba99a6e82ddefbbf8137e7e4e450fe5fc11 | 3f1d7d4bf74acdb4a7bd68bd771e8ce3aff32ce1 | pe: align section reads to FileAlignment, pad sections to SectionAlignment | closes #435 | diff --git a/vivisect/parsers/pe.py b/vivisect/parsers/pe.py
index 02074e146..550c62bf5 100644
--- a/vivisect/parsers/pe.py
+++ b/vivisect/parsers/pe.py
@@ -33,6 +33,14 @@
# 0x183 DEC Alpha AXP
+def align(v, alignment):
+ remainder = v % alignment
+ if remainder == 0:
+ return v
+ else:
+ ... | 3 | 3 | 3 | [{"id": "G0", "claim": "The pull request appears to cause significant unit test failures that are not just 'more accurate' results, and is breaking analysis of Firefox.exe in ways that it should not.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
vivisect__vivisect__439 | vivisect/vivisect | 439 | defect | e42e6de568ca904f7de5348c32b65530557a3ac1 | 0d94e90f43729a651c1531181eab38745629af4e | handle PE delay import tables with VA pointers instead of RVA pointers | closes #438
I'm sorry there's so much new code, but I've commented thoroughly so its clear what I'm doing and why. In theory, this code is only relevant for VS6 binaries (uncommon).
unrelated tweak to the parameter of `parseImportTable` to make it explicit which flavor of table is being parsed. i found `is_impor... | diff --git a/PE/__init__.py b/PE/__init__.py
index f639f4a42..aeebe8aef 100644
--- a/PE/__init__.py
+++ b/PE/__init__.py
@@ -389,6 +389,7 @@ def __init__(self, fd, inmem=False):
object.__init__(self)
self.inmem = inmem
self.filesize = None
+ self.min_rva = None
self.max_rva = ... | 2 | 1 | 1 | [{"id": "G0", "claim": "The per-case flavor checks inside parseImportTable are unnecessary since the flavor value was already validated at the top of the function.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request is missing a test f... | null |
vivisect__vivisect__447 | vivisect/vivisect | 447 | defect | a910a9bd61ccbd5326d136f210d52bf4916817da | 21a2cbdc536d9306589e78da5f6b897fa9c1d7ad | only do rep on string instructions | closes #446
see instance of this in:
https://github.com/fireeye/flare-floss-testfiles/blob/master/src/decode-to-stack/bin/test-decode-to-stack.exe:0x402100 | diff --git a/envi/archs/i386/emu.py b/envi/archs/i386/emu.py
index 658a6f7ac..301b6ae2b 100755
--- a/envi/archs/i386/emu.py
+++ b/envi/archs/i386/emu.py
@@ -245,8 +245,13 @@ def executeOpcode(self, op):
if meth is None:
raise e_exc.UnsupportedInstruction(self, op)
+ # The behavior of the ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reviewer asked that the REP string-instruction check be moved off the per-opcode hot path: create a tuple of INS_* constants (REP_OPCODES) defined outside the function, remove the is_string_instruction logic, and gate REP handling with an opcode-membership test like `if rep_prefix and op.opc... | null |
vivisect__vivisect__450 | vivisect/vivisect | 450 | defect | 9b5fc93940c5ef75a8ee8ee5f539249e9aa4f318 | abbffc7bb8db9818412ae523eaa30d3be3fb40d0 | cohesive memory map (the beginning, if not the end) | simple and sweet. now how me how it sucks... unittests to follow.... | diff --git a/envi/memory.py b/envi/memory.py
index ddb6aa7bf..376d8fe7c 100755
--- a/envi/memory.py
+++ b/envi/memory.py
@@ -527,7 +527,15 @@ def readMemory(self, va, size):
mva, msize, mperms, mfname = mmap
if not mperms & MM_READ:
raise envi.SegmentationViolation... | 3 | 2 | 1 | [{"id": "G0", "claim": "A split write may partially succeed before a later portion fails and raises, leaving the earlier writes in place, and this nuance should be documented in the docstring.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G4", "claim": "Add mor... | null |
vivisect__vivisect__451 | vivisect/vivisect | 451 | defect | 9b5fc93940c5ef75a8ee8ee5f539249e9aa4f318 | 927d187c16e6e58e081ec4efc312a1c9d7636419 | Bugfix: Elf align to page | redxor reads from past the end of "data" that is stored in the ELF. currently this returns an incorrect pointer. this bugfix pads out elf maps to the next page with `\0` (as does the Linux loader).
this bug was discovered while developing cross-map reads/writes | diff --git a/envi/bits.py b/envi/bits.py
index b405b2b74..27f5ecc1f 100755
--- a/envi/bits.py
+++ b/envi/bits.py
@@ -353,3 +353,14 @@ def masktest(s):
def domask(testval):
return testval & maskin == matchval
return domask
+
+def align(origsize, alignment):
+ '''
+ Returns an aligned size based ... | 5 | 5 | 1 | [{"id": "G0", "claim": "The align() helper added to vivisect/parsers/__init__.py duplicates the align() already present in envi/bits.py.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Alignment arguably belongs in the memory map subsystem rather... | null |
vivisect__vivisect__456 | vivisect/vivisect | 456 | defect | 08e7a937d2729fb433286e97dd7dbc778cbf1f4e | 520b4b0afa18a1ce198d1118dd6854ae07f4039d | AddRelocation Robustness | @williballenthin Does this fix #453 for you? | diff --git a/vivisect/__init__.py b/vivisect/__init__.py
index 0c2e381e8..e02e3e3b1 100644
--- a/vivisect/__init__.py
+++ b/vivisect/__init__.py
@@ -389,11 +389,16 @@ def addRelocation(self, va, rtype, data=None):
Expects data to have whatever is necessary for the reloc type. eg. addend
"""
#... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a small unittest for addRelocation() so the changed behavior is proven over time.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vivisect__vivisect__467 | vivisect/vivisect | 467 | defect | 8afb0d615d5e05b74a6ebe98127d42d92920bb14 | 8222472aae86bf037022bf82a253a6b4386908e7 | Various bugfixes mostly cli oriented | ran into bugs while demo'ing some of the CLI commands. mostly Py3 related. one has been a bug since the GIT cutover in 2014 <facepalm> | diff --git a/envi/cli.py b/envi/cli.py
index 3d6b5a668..a65768054 100644
--- a/envi/cli.py
+++ b/envi/cli.py
@@ -309,6 +309,7 @@ def onecmd(self, line):
if self.config.cli.verbose:
self.vprint(traceback.format_exc())
self.vprint("\nERROR: (%s) %s" % (msg.__class__.__name__, ms... | 6 | 6 | 2 | [{"id": "G0", "claim": "The new do_config value parsing (int-or-str inference replacing json.loads) means non-int and non-str option values can no longer be set from the CLI, and the reviewer asks that what exactly is acceptable be narrowed down and defined (suggesting jsonschema for a different PR).", "category": "cor... | null |
vivisect__vivisect__513 | vivisect/vivisect | 513 | defect | 931708510e5d725768a87ef89805e1be6c07075a | f853b8ae64898894522dc45cf39d991c6d589957 | i386: emu: rep(n)z repmax handling | fix handling of REP prefix with `i386:repmax` configuration for sequences like:
```
.text:100010E9 BF 20 60 02 10 mov edi, offset aHello ; "hello"
.text:100010EE 83 C9 FF or ecx, 0FFFFFFFFh
.text:100010F1 33 C0 xor eax, eax
.text:100010F3 6A 00 ... | diff --git a/envi/archs/i386/emu.py b/envi/archs/i386/emu.py
index 6afa534af..cbc06fe2d 100755
--- a/envi/archs/i386/emu.py
+++ b/envi/archs/i386/emu.py
@@ -272,18 +272,21 @@ def doRepzPrefix(emu, meth, op):
ZF starts off being set.
Then the instruction is repeated and ECX decremented until either
... | 3 | 3 | 3 | [{"id": "G0", "claim": "The loop condition added to doRepzPrefix misspells the new repmax variable as `repmap`, causing problems (an undefined-name failure when the repz loop runs).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "In doRepnzPrefix the... | null |
vivisect__vivisect__525 | vivisect/vivisect | 525 | defect | 94f4e65aa842f23d89acfadd2a15c59f60c6f029 | a8d8ee41073271cbba0061c9b5922cee3c669f14 | straggler remote gui-bugs (EASY, Before 5/15/22) | somehow missed these in the gui components, but got them in VivWorkspace.
someday when we wrap in GUI unittests... | diff --git a/vivisect/__init__.py b/vivisect/__init__.py
index 4f6242b99..efdd23212 100644
--- a/vivisect/__init__.py
+++ b/vivisect/__init__.py
@@ -247,7 +247,7 @@ def delExtension(self, name):
'''
self._extensions.pop(name, None)
- def getVivGuid(self):
+ def getVivGuid(self, generate=True):... | 4 | 2 | 1 | [{"id": "G0", "claim": "The new test_guid test should not load /bin/chown, because the test suite already does not pass on Windows and hardcoding a Linux path makes that problem worse.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The time module shoul... | null |
vivisect__vivisect__550 | vivisect/vivisect | 550 | defect | 72071f11383ea93878f4de5d8347da23378147d0 | 8e9bba09f3867aa09e7aabc68480b00b50f968e4 | Enabling POSIX Library Load notifications | (since PTRACE event model doesn't alert on library loads like Windows does).
a couple other general bugfixes/deprecation-cleanup "because we're in the area."
this is ripped out of the Vtrace PR because it's important enough to get it's own
this does *not* include Break on Library Load/Init. that is still in th... | diff --git a/envi/threads.py b/envi/threads.py
index 6e9145ee3..77b871c04 100644
--- a/envi/threads.py
+++ b/envi/threads.py
@@ -19,8 +19,7 @@ def firethread(func):
and callers may not expect sync behavior!
'''
def dothread(*args, **kwargs):
- thr = threading.Thread(target=func, args=args, kwargs=... | 8 | 7 | 1 | [{"id": "G0", "claim": "The PR makes VDB-set breakpoints unlistable and untouchable, and the reviewer is not sold on hiding them, asking that they at least be listable via a verbose option that lists all breakpoints.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ... | null |
vivisect__vivisect__556 | vivisect/vivisect | 556 | defect | fb23b9f2ba86ff7f36975bb088367ddca7c64887 | fa5cf293d2af16c470d961a64f46a903844f921c | added i386 opcode vpcext | Dear vivisect team,
I tried to add "vpcext" mnemonic for i386 architecture. Would be amazing, if you could modify the types of the operands, if necessary.
The reason is, that the analysis will stop at the instruction "vpcext".
Thank you very much! | diff --git a/envi/archs/i386/emu.py b/envi/archs/i386/emu.py
index 7987371bc..2a538ee87 100755
--- a/envi/archs/i386/emu.py
+++ b/envi/archs/i386/emu.py
@@ -2641,3 +2641,8 @@ def i_pextrw(self, op):
def i_pextrd(self, op):
self.i_pextrb(op, width=4)
+
+ def i_vpcext(self, op):
+ # retu... | 4 | 4 | 3 | [{"id": "G0", "claim": "Add a unittest for proper decoding of the new vpcext opcode to envi/tests/test_arch_i386.py (a line or two in the i386MultiByteOpcodes list).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add emulation handling for the new vpcex... | null |
vivisect__vivisect__566 | vivisect/vivisect | 566 | defect | 9df7c1d3285f8d784030549c53a96647067c16e8 | d2de692135da6723f0f9690bf828b3eac1c8229e | Update vamp signatures (replaces old PR#208) | Add signatures for ntdll security_check_cookie from Visual Studio versions thru 2019. The 64-bit 2019 signature appears in unit test tests/testvivisect.py.
Add signatures for ntdll seh4_prolog and seh4_epilog from Visual Studio versions thru 2019. | diff --git a/vivisect/tests/testvampsigs.py b/vivisect/tests/testvampsigs.py
new file mode 100644
index 000000000..89ca9e3f1
--- /dev/null
+++ b/vivisect/tests/testvampsigs.py
@@ -0,0 +1,137 @@
+import unittest
+
+import vivisect
+import envi.memory as e_mem
+
+
+class VampSigTests(unittest.TestCase):
+ '''
+ Tes... | 2 | 2 | 1 | [{"id": "G0", "claim": "The pull request should add a unit test for the updated vamp signatures (e.g. a made-up workspace that adds the necessary bytes, calls vw.makeFunction(va), and checks that the right thing was identified) so the signatures are not accidentally broken.", "category": "testing", "verdict": "supporte... | null |
vivisect__vivisect__570 | vivisect/vivisect | 570 | defect | 8181858bd4025cc1959edd2482dd0d87bdcd3838 | 9e80eec5587cf32a0a0ffd825f33fa7fbcc4e89c | make basicfile slightly smarter (EASY) (FOR RELEASE) | make basicfile smart enough to know that it's writing to an emtpy file, *even* if it is saving "updates," which includes running in non-Bulk-mode for autoanalysis.
it will write the file header into an empty file... because it's an empty file. not because we expressly told it to write all events/etc. | diff --git a/vivisect/storage/basicfile.py b/vivisect/storage/basicfile.py
index cdca5c0cb..29367d0e9 100644
--- a/vivisect/storage/basicfile.py
+++ b/vivisect/storage/basicfile.py
@@ -4,12 +4,13 @@
vivsig_cpickle = b'VIV'.ljust(8, b'\x00')
+def writeFileHeader(f):
+ f.write(vivsig_cpickle)
+
def saveWorkspace... | 1 | 1 | 0 | [{"id": "G0", "claim": "The reviewer asks that a few asserts be added on the locations made between the first and second phases of the test (such as the 0x610a location) so the behaviour is nailed down and encoded.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vivisect__vivisect__575 | vivisect/vivisect | 575 | defect | 204d704f33a6cd873b31af372a1b7fb91f1695fc | dce7235a64c06370169d84bd47ff740e9dd15f67 | Fix 64-bit emulation of div | 64-bit emulation of div defaults to the i386 implementation, which raises an exception if the combined rdx:rax is more than 64 bits. This fix implements div for amd64. Unit test demonstrates the fix. | diff --git a/envi/archs/amd64/__init__.py b/envi/archs/amd64/__init__.py
index a3794d329..b6ce39b83 100755
--- a/envi/archs/amd64/__init__.py
+++ b/envi/archs/amd64/__init__.py
@@ -140,6 +140,28 @@ def i_pextrd_q(self, op):
else:
self.i_pextrb(op, width=4)
+ def i_div(self, op):
+ tsiz... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 64-bit div handling is duplicated between the amd64 emulator and i386's dead dsize==8 branch; fix the i386 lines (single slash to double, 64 to 128) so the condition can be deduplicated, or remove the i386 case and let amd64 own it.", "category": "maintainability", "verdict": "supported", "p... | null |
vivisect__vivisect__608 | vivisect/vivisect | 608 | defect | 1c1f5586349b058115db03ec161224609ebc1044 | 40a2187683fb6fc55be755658e99df941c8fa08a | Stepi -M, Saveout In-task writes and Bugfixes | stepi within same module
file-backed memcanvas for mid-stream writes (ie. not waiting until the end to write out any data) bugfix: CanvasMthodProxy objects returned for fields/attributes.... but they are not equipt to proxy attributes. | diff --git a/envi/cli.py b/envi/cli.py
index e2491e8a1..4471b72f3 100644
--- a/envi/cli.py
+++ b/envi/cli.py
@@ -620,12 +620,11 @@ def do_saveout(self, line):
fname = argv[0]
command = ' '.join(argv[1:])
- strcanvas = e_canvas.StringMemoryCanvas(self.canvas.mem)
+ strcanvas = e_canvas.... | 5 | 2 | 0 | [{"id": "G0", "claim": "FileBackedMemoryCanvas should probably open its output file with an explicit encoding='utf-8' like the project's other text-file opens, keeping the utf-8 encoding behaviour the saveout code it replaces had rather than leaving the encoding implicit.", "category": "design", "verdict": "supported",... | null |
vivisect__vivisect__622 | vivisect/vivisect | 622 | defect | 5655b84e23c6135e806fc67aba185dacefd771c7 | 2a57eee01bb93127c57be348027201f81b1e9d61 | Deal with uninitialized data sections in PE files | A first attempt at dealing with #618. Root of the issue is that this is a packed binary, and there's a jmp instruction at 0x142b1103c that jumps into a section of null bytes that I'm guessing is where some of the unpacked code goes. Vivisect doesn't slam down bytes to perfectly emulate the unpacker, so analysis ends up... | diff --git a/envi/codeflow.py b/envi/codeflow.py
index 795cbd456..092d9bf32 100644
--- a/envi/codeflow.py
+++ b/envi/codeflow.py
@@ -217,6 +217,9 @@ def addCodeFlow(self, va, arch=envi.ARCH_DEFAULT):
if not self._mem.probeMemory(bva, 1, e_const.MM_EXEC):
continue
+ ... | 3 | 1 | 0 | [{"id": "G0", "claim": "Asks what MM_UNINIT exactly is (whether for ELF it is like BSS) and whether codeflow should handle it along the same lines as badbytes, or whether this is the best way for Viv/Codeflow.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
vivisect__vivisect__645 | vivisect/vivisect | 645 | defect | 4136ceed1f9bfee86666cae3df02ec206072ca57 | 53a0b7115ca6672b64d84ae36f2807523b7cd769 | VivServer enhancements | first off:
* `vivbin -S` now starts the VivServer. `-P` sets the listening port. you can still use `python -m vivisect.remote.server` but that is so hackery, i wanted something up front and personal. i could easily be swayed to making a standalone script `vivserver` instead, which would simply hand off to `vivi... | diff --git a/cobra/__init__.py b/cobra/__init__.py
index 55997ce77..0216a759e 100644
--- a/cobra/__init__.py
+++ b/cobra/__init__.py
@@ -19,6 +19,7 @@
import logging
import traceback
import urllib.parse
+import envi.common as e_cmn
from threading import current_thread, Thread, RLock, Timer, Lock
from socketserve... | 6 | 1 | 0 | [{"id": "G0", "claim": "Remove the msgpack request/response log lines entirely instead of logging raw bytes to the terminal.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Make the cobra and VivServer timeouts configurable parameters rather than hardcode... | null |
vivisect__vivisect__659 | vivisect/vivisect | 659 | defect | a8a8c8be0cfa51ef1bcfc7cb1e9c492705b8ac7b | b3e538b2f528765c4f28ef5eaff09e381dd677dd | PE/ELF loader fixes | This PR fixes four loader bugs encountered while running vivisect against a large number of real world samples. The associated capa issue #s (and ultimately sample hashes) are referenced in the individual commit messages.
f280156636a9c5d9a4748410aafe80bb3467f92f - bail when import strings aren't valid unicode, which... | diff --git a/PE/__init__.py b/PE/__init__.py
index 92a02587e..5fb63d7ac 100644
--- a/PE/__init__.py
+++ b/PE/__init__.py
@@ -1072,7 +1072,12 @@ def parseImportTable(self, x, irva, flavor="import table", uses_rva=True):
entry_name_rva = self.vaToRva(entry_name)
# RP BUG FIX - we can't ass... | 4 | 3 | 0 | [{"id": "G0", "claim": "The explicit sva == 0x0 and not vw.isValidPointer(sva) guards may be redundant, assuming that 0x0 is not a valid pointer in an ELF binary.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Log a message when an object symbol... | null |
vivisect__vivisect__672 | vivisect/vivisect | 672 | defect | a8a8c8be0cfa51ef1bcfc7cb1e9c492705b8ac7b | 953492f1317963539881cc280c9cc895d1d46ab8 | arm improvements | Arm undefine ffffffff
HLT instruction
other other improvements | diff --git a/envi/archs/arm/const.py b/envi/archs/arm/const.py
index 8c30ee148..1d14e72d2 100644
--- a/envi/archs/arm/const.py
+++ b/envi/archs/arm/const.py
@@ -415,6 +415,7 @@
'MOV',
'BIC',
'MVN',
+ 'HLT',
'ORN',
'ADR',
'B',
diff --git a/envi/archs/arm/disas... | 1 | 1 | 1 | [{"id": "G0", "claim": "Unit tests should be added covering the pull request's new ARM disassembly behaviour (the undefined-instruction handling and the new HLT instruction), which at S1 is untested.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vkolgi__json-to-graphql-query__33 | vkolgi/json-to-graphql-query | 33 | defect | bda6e82f40e1d110a15c614bcb443add0df4d2c8 | fe780a2258e5fba1684821c9827b8104b7cdf5a2 | Adding support of multi directives | Hello,
We really enjoyed the lib but multi directives support was missing and we so the "TODO", so here it is :)
We also added test for this use case.
Hope this will be ok for you and make it available to everyone | diff --git a/src/__tests__/directives.tests.ts b/src/__tests__/directives.tests.ts
index d5fade3..bb0377a 100644
--- a/src/__tests__/directives.tests.ts
+++ b/src/__tests__/directives.tests.ts
@@ -72,6 +72,82 @@ describe('jsonToGraphQLQuery() - directives', () => {
expect(jsonToGraphQLQuery(query)).to.equal(ex... | 2 | 2 | 1 | [{"id": "G0", "claim": "The imperative forEach loop accumulating dirsStr should be replaced with a declarative Object.entries(...).map(...).join(' ') chain, as in the reviewer's suggestion block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th... | null |
vlachoudis__bCNC__1120 | vlachoudis/bCNC | 1,120 | defect | 15d54c16935c97bc83fe13605e0ba1253593d860 | d82fa80e1df9de244328fae6ce4d333134ae20cc | Adds rudimentary automated Travis CI tests. | Redux of #685, but _not_ relying up on `grbl-sim`.
Two important notes:
* This does disable testing on Windows. Sorry about that, but I'm not at all sure how to run GUI tests there. Given that we currently have no windows-specific tests in place, it seems fairly reasonable to cut them out in exchange for actua... | diff --git a/.travis.yml b/.travis.yml
index 3b0916764..5d095bf9f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,19 +1,35 @@
os:
- linux
- - windows
language: python
+addons:
+ artifacts:
+ s3_region: "us-west-2"
+ paths:
+ - screenshots/
+ apt:
+ packages:
+ ... | 2 | 2 | 1 | [{"id": "G0", "claim": "Running the validation checks under `set -e` in tests/init_environment.sh makes the script stop at the first failing check, so a contributor who commits several errors sees only the first failure and has to fix and rebuild one error at a time instead of seeing all problems at once; the checks sh... | null |
vladimirvivien__automi__41 | vladimirvivien/automi | 41 | defect | a6448252d6ec601ed6ce9450ac53ff299fce4275 | 22a61a9f8c1a6b59354674cc4649f9858ba7e961 | feat: Add ChanSink for sending stream items to a Go channel (attempt 2) | The `ChanSink` allows streaming data from an Automi pipeline to be collected into a channel. Items in the channel can be accessed as shown below:
```go
src := sources.Slice([][]string{ ... }
snk := sinks.Chan[[]string]()
strm := From(src)
strm.WithLogSink(sinks.Func(testutil.LogSinkFunc(t)))
strm.Into(snk)
.... | diff --git a/go.mod b/go.mod
index 3bc7496..310e853 100644
--- a/go.mod
+++ b/go.mod
@@ -2,6 +2,4 @@ module github.com/vladimirvivien/automi
go 1.23.5
-toolchain go1.23.5
-
require github.com/vladimirvivien/gexe v0.4.1
diff --git a/sinks/chansink.go b/sinks/chansink.go
new file mode 100644
index 0000000..54a81b1
... | 4 | 2 | 1 | [{"id": "G0", "claim": "The doc comment for ChanSink.Open is verbose and unclear and should be rephrased to something like \"Open starts the sink and returns a channel that signals when processing completes or an error occurs.\"", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduc... | null |
vlayer-xyz__vlayer__1086 | vlayer-xyz/vlayer | 1,086 | defect | 5d2e6d083ee4ecb23574df9474813f64420f5857 | 2c9470e5b27fcb9485ce4a53590e8928ae2465fc | Refactor proving out of call Host | * Creates struct Prover which abstracts ELF and error handling from Host and is a nicer interface than raw Risc0 prover.
* Similar to how we do it in chain Host
* Renames Host::run to Host::main
* Exports engine::io::* directly to simplify imports and not expose internal structure | diff --git a/rust/services/call/engine/src/evm/env/location.rs b/rust/services/call/engine/src/evm/env/location.rs
index c2e13fa358..bbedd85f57 100644
--- a/rust/services/call/engine/src/evm/env/location.rs
+++ b/rust/services/call/engine/src/evm/env/location.rs
@@ -2,7 +2,7 @@ use alloy_primitives::{BlockNumber, Chain... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new doc comment on Prover should read 'which specifies the call guest ELF' instead of the typo 'specifier'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new prover::Error enum variants Prover(String) and ExecutorE... | null |
vlayer-xyz__vlayer__1176 | vlayer-xyz/vlayer | 1,176 | defect | 8267d6d73a29363b0a0732a0e21036f6b0342d2d | 53e4cc9069966e4c1c08104a902e96f03189e781 | server: add gas_limit, return hash as part of the v_call RPC method | * adds `gas_limit` filed to `CallContext` object in `v_call` params
* generates `v_call` hash on the server side (removes hash spoofing on the client side)
TODO:
- [x] actually calculate the hash on the server side
- [ ] ~~enforce type safety in server's integration tests for `CallResult` - seems we don't even ca... | diff --git a/book/src/appendix/api.md b/book/src/appendix/api.md
index 59c276861f..491048f4c2 100644
--- a/book/src/appendix/api.md
+++ b/book/src/appendix/api.md
@@ -39,6 +39,7 @@ And the response format below.
"data": "0x<abi encoded calldata>",
}, { // CallContext
"chain_id": "<desired chain i... | 8 | 6 | 3 | [{"id": "G0", "claim": "gas_limit should not be a required parameter — a default should be set so users are not forced to pass it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `// 31337` comment on chain_id in CallContext is unnecessary and should ... | null |
vlayer-xyz__vlayer__1203 | vlayer-xyz/vlayer | 1,203 | defect | 7018b34ba9f148848533f53663f3b38bc13d8e44 | efa75a71d05a10c2c6117e0be9a05d4c7437ee4a | server+sdk: add gas_limit to v_call method | New `v_call` now looks like this:
```json
{
"call": {
"to": "0xdeadbeef",
"data": "0xbeefdeadbeefdeaf",
},
"context": {
"chain_id": 31337,
"gas_limit": 1000000,
},
}
```
The default value of `gas_limit` is set at `1_000_000` in the SDK as discussed.
~~... | diff --git a/book/src/appendix/api.md b/book/src/appendix/api.md
index 445b2a8f2c..de29e82392 100644
--- a/book/src/appendix/api.md
+++ b/book/src/appendix/api.md
@@ -40,6 +40,7 @@ And the response format below.
"data": "0x<abi encoded calldata>",
}, { // CallContext
"chain_id": "<desired chain i... | 5 | 2 | 0 | [{"id": "G0", "claim": "Commenting out the e2e test steps is bad practice; the disabled code should be removed (it can be retrieved from git later) or the test disabled instead of being left as commented-out code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
vlayer-xyz__vlayer__1216 | vlayer-xyz/vlayer | 1,216 | defect | 1c962bc04946b7830199c786d8bf9df4a36e4a79 | b9d033d93ecff65c277e6c16655b84a5bc64577b | Add is_optimism field in ChainSpec | `is_optimism` field is to be later used while creating `revm` `HandlerCfg`:
```rs
pub struct HandlerCfg {
/// Specification identification.
pub spec_id: SpecId,
/// Optimism related field, it will append the Optimism handle register to the EVM.
#[cfg(feature = "optimism")]
pub is_optimism: ... | diff --git a/rust/chain/chain_specs.toml b/rust/chain/chain_specs.toml
index d09b0033ee..898e25e29d 100644
--- a/rust/chain/chain_specs.toml
+++ b/rust/chain/chain_specs.toml
@@ -1,6 +1,7 @@
[[chains]]
name = "mainnet"
id = 1
+is_optimism = false
forks = [
{ spec = "FRONTIER", activation = { Block = 0 } },
{ ... | 2 | 2 | 0 | [{"id": "G0", "claim": "is_optimism should default to false so it only needs to be specified as true on chains that are optimism, instead of being written explicitly (false) for every chain.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reviewer asks wh... | null |
vlayer-xyz__vlayer__1235 | vlayer-xyz/vlayer | 1,235 | defect | 38e91bcde4d58d9df871c6839756ef8ee53624b9 | d0ba0626cd49dc8ac947b576ad586da0bad3bdb0 | call_server: hook up gas meter server client | * add `GasMeterConfig { url, time_to_live }` to `server::Config` struct
* add `GasMeterClient` encapsulating RPC client responsible for talking with the gas metering service
* issue `v_startGasMeter` in `v_call` before preflighting and proving
* hook up mock gas metering server in integration tests | diff --git a/rust/services/call/server/src/config.rs b/rust/services/call/server/src/config.rs
index 1a8c7f0f13..47a4eea24d 100644
--- a/rust/services/call/server/src/config.rs
+++ b/rust/services/call/server/src/config.rs
@@ -17,6 +17,9 @@ pub struct Config {
verify_chain_proofs: bool,
call_guest_elf: GuestE... | 21 | 16 | 0 | [{"id": "G0", "claim": "Introduce a constructor for StartGasMeter instead of building it with a struct literal inside Client::start_gas_meter.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The RPC client should log every request and response it... | null |
vlayer-xyz__vlayer__1243 | vlayer-xyz/vlayer | 1,243 | defect | d11b320ce0e872d45d416efa21ea84acdfd36e37 | b09a001bad811f8007979aa91a0a87a6e324b208 | gas_meter: report gas unused after preflight | Hook up `v_refundUnusedGas` after preflight call, and report gas used. | diff --git a/rust/services/call/host/src/host.rs b/rust/services/call/host/src/host.rs
index b09fe5c654..07dda191e1 100644
--- a/rust/services/call/host/src/host.rs
+++ b/rust/services/call/host/src/host.rs
@@ -21,6 +21,7 @@ use call_engine::{
};
use common::GuestElf;
pub use config::{Config, DEFAULT_MAX_CALLDATA_SI... | 1 | 1 | 0 | [{"id": "G0", "claim": "The 21728 literal should be written with digit separators (21_728), enabling the unreadable_literal and unseparated_literal_suffix clippy lints; the reviewer said this belongs in a follow-up PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vlayer-xyz__vlayer__1249 | vlayer-xyz/vlayer | 1,249 | defect | 1e1f74e93828c30ff43a1bb9a1df1d6d2dc7db7e | aa7e02c47b990f14acd3fa8ab2d72c1083fb437a | Use is_optimism in HandlerCfg & seed cache with trusted storage data | * `is_optimism` flag is used in `HandlerCfg`
* `L1Block` contract storage is seeded with 0s to reduce the number of rpc calls
* `L1Block`, `BaseFeeVault` and `L1FeeVault` seeded as empty_accounts
* `seed_cache_db_with_trusted_data()` loads storage data from `ACCOUNT_TO_STORAGE` | diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index c2045cba19..908e5bdfa1 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -1928,6 +1928,7 @@ dependencies = [
"derive-new",
"derive_more 1.0.0",
"itertools 0.13.0",
+ "lazy_static",
"mpt",
"once_cell",
"revm",
diff --git a/rust/services/call/engine/Car... | 6 | 3 | 0 | [{"id": "G0", "claim": "The helpers that load trusted data into the CacheDB should be named seed_* (e.g. seed_accounts_info, seed_storage) instead of insert_*, because 'insert' does not convey the reason for the operation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
vlayer-xyz__vlayer__1253 | vlayer-xyz/vlayer | 1,253 | defect | 1e1f74e93828c30ff43a1bb9a1df1d6d2dc7db7e | b2e352c2590d4651e800390222839a11fc5d361c | server_utils/rpc: decouple method from RpcClient into RpcMethod trait | This then allows to have a single `RpcClient` instance at a single url to support multiple JSON RPC methods. | diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index c2045cba19..a464853918 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -2177,6 +2177,7 @@ dependencies = [
"derive-new",
"mpt",
"parking_lot",
+ "serde",
"serde_json",
"server_utils",
"thiserror",
diff --git a/rust/server_utils/src/rpc.rs b/rust/ser... | 3 | 2 | 0 | [{"id": "G0", "claim": "Inline the V_REFUND_UNUSED_GAS constant — drop the standalone const and reference the method name directly from the RpcMethod impl (e.g. RefundUnusedGas::NAME / \"v_refundUnusedGas\"), since it is used in a single place.", "category": "design", "verdict": "supported", "priority": "P2", "scope": ... | null |
vlayer-xyz__vlayer__1254 | vlayer-xyz/vlayer | 1,254 | defect | 46a937d07d4f686dbaf675495cee145989770cfc | 3232f341b8a67821ac24fad727f2809ec5fe6f82 | Extract gas_meter testing to a separate test | This changeset introduces a new test case for `v_call` with gas meter hooked up. In particular, it tests that we correctly issue `v_allocateGas` to the mocked gas server meter.
In addition, this changeset refactors `call/server/tests/test_helpers/mod.rs` in that it disentangles concept of vlayer server `ConfigBuilde... | diff --git a/rust/services/call/server/src/gas_meter.rs b/rust/services/call/server/src/gas_meter.rs
index 9102f463c4..0cdc858d12 100644
--- a/rust/services/call/server/src/gas_meter.rs
+++ b/rust/services/call/server/src/gas_meter.rs
@@ -34,7 +34,7 @@ impl RpcMethod for RefundUnusedGas {
const METHOD_NAME: &str =... | 3 | 3 | 0 | [{"id": "G0", "claim": "The \"default\" prefix on the test-helper functions and consts (default_call_guest_elf, default_chain_guest_elf, DEFAULT_API_VERSION, DEFAULT_CHAIN_ID, DEFAULT_GAS_LIMIT, DEFAULT_GAS_METER_TTL) is unjustified or misleading since these are ordinary or mock values rather than defaults, so the pref... | null |
vlayer-xyz__vlayer__1269 | vlayer-xyz/vlayer | 1,269 | defect | 1870369b27eff78d7dc8ba1dcb532e4a9ea0d364 | 8c84cabad8790ee9af850714ec1e5b7f82b6c9c8 | server_utils/rpc: allow for multiple mocks in an RpcServerMock | This way we can test more than one JSON RPC method on a single server instance. | diff --git a/rust/range/src/range.rs b/rust/range/src/range.rs
index e3c76fa1aa..d497f62164 100644
--- a/rust/range/src/range.rs
+++ b/rust/range/src/range.rs
@@ -49,7 +49,7 @@ impl From<NonEmptyRange> for Range {
impl PartialEq<RangeInclusive<u64>> for Range {
fn eq(&self, other: &RangeInclusive<u64>) -> bool ... | 10 | 9 | 1 | [{"id": "G0", "claim": "RpcServerMock::assert should delegate to each mock's own assert (for mock in &self.mocks { mock.assert(); }) instead of checking that all mocks matched, so failures are reported per mock.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
vlayer-xyz__vlayer__1304 | vlayer-xyz/vlayer | 1,304 | defect | 536184ccf67ddc9e1240edc1f36a92998477c541 | fb965dadc90e53600f006443577f350435a4600f | call_server: validate JSON RPC is either a result or error in integration tests | This patch does two things:
1. ~~renames `call/server/tests/test_helpers/mod.rs` to `call/server/tests/test_helpers.rs` - I do not see any reason for old-school module naming in this particular case~~ - @LogvinovLeon pointed out to me that is by design in Rust when it comes to integration testing (thanks!) so revertin... | diff --git a/rust/services/call/server/tests/integration_tests.rs b/rust/services/call/server/tests/integration_tests.rs
index 2514ae38ba..7e5c1a4d61 100644
--- a/rust/services/call/server/tests/integration_tests.rs
+++ b/rust/services/call/server/tests/integration_tests.rs
@@ -1,11 +1,17 @@
-use axum::http::StatusCode... | 2 | 2 | 0 | [{"id": "G0", "claim": "The validator API should be more specific, e.g. a JsonRpcValidator letting tests call `.assert_error(-32601, \"Method `non_existent_json_rpc_method` not found\", null)` instead of passing a whole json! blob.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
vlayer-xyz__vlayer__1354 | vlayer-xyz/vlayer | 1,354 | defect | 50187071f82dd06fb6d8239e2bf19835e820b9f8 | f44b07c9e71a0b225ef309b22a59fd1df471a037 | call_server: accept in CLI and route to gas meter client server's API key | ElPassion folks require our server to ember a custom HTTP header `x-api-prover-key` in order to authenticate with the gas meter server. | diff --git a/rust/cli/Cargo.toml b/rust/cli/Cargo.toml
index 8e499833b9..f343f85b99 100644
--- a/rust/cli/Cargo.toml
+++ b/rust/cli/Cargo.toml
@@ -15,7 +15,7 @@ anyhow = { workspace = true }
call_guest_wrapper = { workspace = true }
call_server = { workspace = true }
chain_guest_wrapper = { workspace = true }
-clap ... | 4 | 3 | 0 | [{"id": "G0", "claim": "The response and request log statements in the RPC client should use `debug!` instead of `info!`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The manually set `Content-Type: application/json` header is redundant becaus... | null |
vlayer-xyz__vlayer__1429 | vlayer-xyz/vlayer | 1,429 | defect | 1e769629bb4cbb278ba2cd7e43ddfafc28759ffe | 5ca556de32abce91a646798d81930bbdf2a3be2f | call_server: check if hash actually exists in v_getProofReceipt | Check if hash actually exists in `v_getOroofReceipt`. Then, if it does, remove the entry if and only if it is ready (`ProofStatus::Ready(..)`). Otherwise, we may end up in a situation where our task map is lacking the hash that is currently in preflight or in proving but reporting it as missing instead. I wish there wa... | diff --git a/rust/services/call/server/src/error.rs b/rust/services/call/server/src/error.rs
index 54dbd527e0..f4a9cfe838 100644
--- a/rust/services/call/server/src/error.rs
+++ b/rust/services/call/server/src/error.rs
@@ -4,6 +4,8 @@ use server_utils::{rpc::Error as RpcError, FieldValidationError};
use thiserror::Err... | 5 | 4 | 3 | [{"id": "G0", "claim": "AppError::HashNotFound should not be answered with the INVALID_PARAMS error code, since the hash is a valid parameter that simply does not exist on the server; invalid request is a better choice.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id"... | null |
vlayer-xyz__vlayer__1458 | vlayer-xyz/vlayer | 1,458 | defect | 23726440d9f4b00b5b305ae716e591a5a384d35c | 33ad45962713226e605550a5ec5d59936a67d36a | call_server: report preflight and proving metrics to the client | Reported metrics now include: `gas_used`, `cycles_used`, `preflight_time` and `proving_time`.
The updated response to `v_getProofReceipt` method looks like:
```json
{
"id": 1,
"jsonrpc": 2.0,
"result": {
"status": "ready",
"receipt": {
"data": {
"evm... | diff --git a/book/src/appendix/api.md b/book/src/appendix/api.md
index 93f26bcf7e..1df867679e 100644
--- a/book/src/appendix/api.md
+++ b/book/src/appendix/api.md
@@ -95,29 +95,39 @@ To get result of `v_call` query `v_getProofReceipt`.
}
```
-There are two possible results: `pending`, and `done`.
+There are 5 possi... | 2 | 2 | 1 | [{"id": "G0", "claim": "The v_getProofReceipt result should report the preflight/proving stats nested under `receipt.metrics` as `gas`, `cycles` and `times.preflight`/`times.proving` instead of the flat `gas_used`/`cycles_used`/`preflight_time`/`proving_time` fields on the receipt.", "category": "design", "verdict": "s... | null |
vlayer-xyz__vlayer__1492 | vlayer-xyz/vlayer | 1,492 | defect | 874e14db51ae66288a9644683d1a7974809aa41d | 8983497aa83b1233dfea62b1c29b337934b9a95c | call_server: redo JSON result returned from v_getProofReceipt and introduce `status: 1 | 0` field | `v_getProofReceipt` now returns the following result structure:
```json
{
state: queued | chain_proof | preflight | proving | done,
status: 1 | 0,
data: {
evm_call_result: ...,
},
error: "",
metrics: {},
}
```
If any of the proving stages errored out, the server now sets `status = 0`, `d... | diff --git a/rust/services/call/server_lib/src/chain_proof.rs b/rust/services/call/server_lib/src/chain_proof.rs
index 797e8bc511..dce8c62303 100644
--- a/rust/services/call/server_lib/src/chain_proof.rs
+++ b/rust/services/call/server_lib/src/chain_proof.rs
@@ -5,11 +5,6 @@ use derive_new::new;
use serde::{Deserializ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The S1 ProofStatus enum is clumsy and a struct with an enum State would be a better design, especially since metrics persist between states, with the data and error carried by the state variants (e.g. ProofResult::Done(RawData)).", "category": "design", "verdict": "supported", "priority": "P1", ... | null |
vlayer-xyz__vlayer__1557 | vlayer-xyz/vlayer | 1,557 | defect | 2300c2899c118fbc25cf15b1ed91a8cfa6c0d452 | ffa8f4ae0299336c1466eeb6cf6c123a99a657d6 | Preload l1 block info | This PR fixes:
```rs
Error: TravelCallExecutor error: Panic: L1BlockInfo should be loaded
Caused by:
Panic: L1BlockInfo should be loaded
```
It happened only on **testnet** as it's only a problem on Optimism.
TL;DR - there were two issues.
1. We Had `revm` version `19.0.0` on **host** and `19.3.0` on **gu... | diff --git a/bash/run-services.sh b/bash/run-services.sh
index 9c4d9de81c..aa0fe0be9f 100755
--- a/bash/run-services.sh
+++ b/bash/run-services.sh
@@ -13,6 +13,7 @@ source "$(dirname "${BASH_SOURCE[0]}")/run_services/cleanup.sh"
trap cleanup EXIT ERR INT
# Default values
+VLAYER_ENV=${VLAYER_ENV:-dev}
BUILD_BINARI... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a CHANGELOG.md in rust/guest_wrapper/artifacts/chain_guest/ recording the chain guest ELF IDs (initial e6fbd753 and the revm-change update) before approving.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vlayer-xyz__vlayer__1585 | vlayer-xyz/vlayer | 1,585 | defect | 945e6f7501a234f1494ea278e612fe3a72f187e5 | 012066e80a9a7053f734af0e727208541c2cc180 | Teleport int test | * Adds an integration test that transfers 100 tokens of an ERC20 to John on L2 and teleports from L1 to check John's balance
* Fixes an issue when chain proof was requested when only one location per chain was present | diff --git a/examples/simple-teleport/vlayer/loadFixtures.ts b/examples/simple-teleport/vlayer/loadFixtures.ts
index ba2abbdf06..7b5acff405 100644
--- a/examples/simple-teleport/vlayer/loadFixtures.ts
+++ b/examples/simple-teleport/vlayer/loadFixtures.ts
@@ -51,7 +51,7 @@ function computeOutputRoot(
export const l1Tes... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new teleport_v2 test was merged with `#[ignore = \"Fails due to ABI decoding issue\"]` and the reviewer asks what the plan is to fix the ABI decoding failure, or whether merging with the test ignored is acceptable.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "... | null |
vlayer-xyz__vlayer__1589 | vlayer-xyz/vlayer | 1,589 | defect | a7119082384f40159903bf1aa1c04f95b7a6e8fa | 4f8102a2cc06701675fcc6aacbe56621ce738e4f | Split out time_travel verifier | ```rs
impl<TT: time_travel::Verifier> seal::Sealed for ZkVerifier<TT> {}
#[async_trait]
impl<TT: time_travel::Verifier> Verifier for ZkVerifier<TT> {
async fn verify(&self, input: &MultiEvmInput) -> Result {
for (chain_id, blocks) in input.blocks_by_chain() {
self.time_travel.verify(chain_... | diff --git a/rust/services/call/engine/src/verifier.rs b/rust/services/call/engine/src/verifier.rs
index ba023d66bd..1818bfb13e 100644
--- a/rust/services/call/engine/src/verifier.rs
+++ b/rust/services/call/engine/src/verifier.rs
@@ -1,5 +1,6 @@
pub mod chain_proof;
-pub mod guest_input;
+pub mod time_travel;
+pub mo... | 5 | 3 | 0 | [{"id": "G0", "claim": "The travel-call verifier struct should not be called `ZkVerifier` because it makes no assumption that the underlying time-travel verifier uses zk proofs (and it breaks the IVerifier/Verifier naming convention), so it should be renamed, e.g. to `Verifier`.", "category": "design", "verdict": "supp... | null |
vlayer-xyz__vlayer__1603 | vlayer-xyz/vlayer | 1,603 | defect | 6ec8e1877af6a299c2c390e194afc3bebe009e8d | a55e133931d276466fea17d1ce0df8ffa1575e15 | Use historical chain guest IDs in chain host | This will be refactored in another PR to use `chain_proof::Verifier` for chain worker as well. | diff --git a/Cargo.lock b/Cargo.lock
index 1e84551b1d..6e6dd84540 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2454,6 +2454,7 @@ dependencies = [
"common",
"dotenvy",
"guest_wrapper",
+ "risc0-zkp 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"tokio",
"version",
]
@@ -12622,6 +12623,7 @@ de... | 1 | 1 | 0 | [{"id": "G0", "claim": "Reduce the repetition of the per-test db/server setup in integration_tests.rs, e.g. by extracting a helper (test_server) that wraps ChainDb::in_memory([GuestElf::default().id]) and server(db).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vlayer-xyz__vlayer__1616 | vlayer-xyz/vlayer | 1,616 | defect | 4917cb0f577e8d669a46a9e005d00b679699ad53 | a45d8caecfde88c18d65972418523c02b58a9ca1 | Teleport preparation | Teleport skeleton.
Moves down the early-exit on chain proofs unavailability as teleport might still be possible | diff --git a/rust/chain/src/lib.rs b/rust/chain/src/lib.rs
index cd334d437b..8bd8ffd6f2 100644
--- a/rust/chain/src/lib.rs
+++ b/rust/chain/src/lib.rs
@@ -3,5 +3,7 @@ mod eip1559;
mod fork;
mod spec;
-pub use config::{CHAIN_NAME_TO_CHAIN_ID, MAINNET_MERGE_BLOCK_NUMBER, TEST_CHAIN_ID};
+pub use config::{
+ CHAIN_... | 3 | 1 | 0 | [{"id": "G0", "claim": "Introduce a BlocksByChain newtype (with a chain_ids() helper) and use it in the teleport verifier's signature and body instead of the raw HashMap<ChainId, Vec<(BlockNumber, BlockHash)>>.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
vlayer-xyz__vlayer__1809 | vlayer-xyz/vlayer | 1,809 | defect | 66d9c33fe00f9ddabfc3579f21225ddb7ce5cf48 | d8a6e3de4dca1091fd3fed69b9b4cc6c3253f62f | Better EVM errors | ## History & motivation:
Sometimes Artur reported issues like: "TravelCallExecutionError: TransactPreverifiedError:"
This could happen for a variety of reasons and it's not enough info to debug it.
It could be a precompile error or a database error or evm revert with empty string or evm revert in an inner evm.
I in... | diff --git a/rust/services/call/common/src/helpers.rs b/rust/services/call/common/src/helpers.rs
index 3bf2bf89e5..eaf9b7252f 100644
--- a/rust/services/call/common/src/helpers.rs
+++ b/rust/services/call/common/src/helpers.rs
@@ -1,23 +1,37 @@
#![allow(clippy::disallowed_types)]
use std::fmt;
-use revm::DatabaseRe... | 2 | 1 | 0 | [{"id": "G0", "claim": "The error type naming (WrappedRevmDBError and the misleading TravelCallResult/Result aliases) suggests the call can only fail with a DB error, which does not reflect the actual error surface.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
vlayer-xyz__vlayer__1933 | vlayer-xyz/vlayer | 1,933 | defect | 9b4a3e8ed4f26ce8c2e4809dcb46013111ff7b77 | cbb81a9f80902e665a87ab9d66e77b9a8f8278b2 | call_server: roll out JWT authentication | As discussed in #1924, this PR implements JWT authentication as an additive authentication method *and* behind a feature flag. Therefore, re-building the crate without any additional flags will not bake in the new authentication method. To do that you will need to explicitly specify you want it enabled like so
```
... | diff --git a/.github/workflows/test_rust.yaml b/.github/workflows/test_rust.yaml
index 45960fc28b..6feaf204e9 100644
--- a/.github/workflows/test_rust.yaml
+++ b/.github/workflows/test_rust.yaml
@@ -38,7 +38,7 @@ jobs:
- name: Run workspace rust tests
run: |
- cargo test --workspace --locked
... | 7 | 4 | 0 | [{"id": "G0", "claim": "If the Claims field names are not part of the JWT standard, use more descriptive names; if they are standard, re-use a library type.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The JWT config-building helper should liv... | null |
vlayer-xyz__vlayer__2137 | vlayer-xyz/vlayer | 2,137 | defect | a4b83de320a9eed6005023ad87fb2bdc63836932 | 2112acfa32ef33fd770a8ff7b8c158e0dda61f85 | Web proof http data param |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Introduced a builder-based configuration system for web proof generation and notarization, allowing more intuitive customization of server details and redaction settings.
- **Refactor**
- Sim... | diff --git a/Cargo.lock b/Cargo.lock
index 2115caf8bc..0ea7854941 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14816,6 +14816,8 @@ dependencies = [
"bincode",
"constcat",
"derive-new",
+ "derive_builder 0.12.0",
+ "derive_more 1.0.0",
"hex",
"http-body-util",
"hyper 1.5.2",
diff --git a/Cargo.toml b/Cargo.t... | 12 | 4 | 1 | [{"id": "G0", "claim": "The `use std::collections::HashMap;` import in rust/web_prover/examples/generate_web_proof.rs is unused and is failing the linter; remove it.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Calling `.build().unwrap()` (in rust... | null |
vlayer-xyz__vlayer__2160 | vlayer-xyz/vlayer | 2,160 | defect | b4438de553fca4d636260be0c90f47903b060efb | 86edbe47eed152f15b45304716e6457f02587697 | Add Risc0 version to `v_versions` |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Expanded API responses to include additional version details, providing users with enhanced tracking of the Risc0 component version.
- Introduced a new property, `risc0_version`, to the versioni... | diff --git a/rust/services/call/server_lib/Cargo.toml b/rust/services/call/server_lib/Cargo.toml
index aacfbb072a..0bd53c6944 100644
--- a/rust/services/call/server_lib/Cargo.toml
+++ b/rust/services/call/server_lib/Cargo.toml
@@ -2,6 +2,7 @@
name = "call_server_lib"
version = "0.1.0"
edition = "2021"
+build = "buil... | 3 | 3 | 0 | [{"id": "G0", "claim": "The `build = \"build.rs\"` entry in server_lib's Cargo.toml is unnecessary because build.rs is the default file name, so it need not be specified.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The build script should emi... | null |
vlayer-xyz__vlayer__2161 | vlayer-xyz/vlayer | 2,161 | defect | c1aff83a2ac2718f764ec04d73df9ca0c04a6ee4 | aca50a495458bc84235681d86b820b83d262f653 | Update TLSN v9 |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Improved random number generation support for specific targets, enhancing compatibility and reliability across platforms.
- Introduced a custom random number generation function to optimize en... | diff --git a/.cargo/config.toml b/.cargo/config.toml
index 534f1472d5..5d25e091c9 100644
--- a/.cargo/config.toml
+++ b/.cargo/config.toml
@@ -10,3 +10,6 @@ RISC0_FEATURE_bigint2 = "1"
# link libusb statically to avoid runtime linking issues
LIBUSB_STATIC = "1"
+
+[target.riscv32im-risc0-zkvm-elf]
+rustflags = ["--... | 13 | 1 | 1 | [{"id": "G0", "claim": "The bot asserts that `rangeset` is used as a workspace dependency but is not listed under `[workspace] members` in the root Cargo.toml, and asks the author to add it there to avoid build failures.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id... | null |
vlayer-xyz__vlayer__2182 | vlayer-xyz/vlayer | 2,182 | defect | e658b0a7d5fdbfd1c0aaf2878660915d72ed6db9 | 3d55f7a285691fed26526278e6792a0984d8a9d3 | Update precopmile addresses to avoid collisions |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **Refactor**
- Updated contract addresses with new values and consistent casing.
- Centralized precompile address definitions using a base address derived from a hashed identifier.
- Replaced local precompile add... | diff --git a/contracts/vlayer/deployed_contracts.json b/contracts/vlayer/deployed_contracts.json
index 28ed555bb2..da059c0c70 100644
--- a/contracts/vlayer/deployed_contracts.json
+++ b/contracts/vlayer/deployed_contracts.json
@@ -2,19 +2,19 @@
"contracts": [
{
"contractName": "Repository",
- "contr... | 7 | 2 | 2 | [{"id": "G0", "claim": "Remove the unused `alloy_primitives::hex` import in rust/services/call/precompiles/src/lib.rs, which fails the Test Rust and Lint Rust checks.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "precompile_by_name always uses prec... | null |
vlayer-xyz__vlayer__2195 | vlayer-xyz/vlayer | 2,195 | defect | 9be204b040bcf8ef5904a7509393cd58e6bd73bf | 157c57006cfe9dec860423a20785b3374c7d9f8f | Remove unwraps and panics from `web_prover` |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **Refactor**
- Improved error handling across multiple features by adopting a unified approach using the `anyhow` crate, replacing generic boxed errors and eliminating panics.
- Updated function signatures to us... | diff --git a/Cargo.lock b/Cargo.lock
index 2339a1b258..9a33c5eb4d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14819,6 +14819,7 @@ dependencies = [
name = "web_prover"
version = "0.1.0"
dependencies = [
+ "anyhow",
"bincode",
"constcat",
"derive-new",
diff --git a/rust/cli/src/commands/web_proof.rs b/rust/cli/... | 1 | 1 | 0 | [{"id": "G0", "claim": "Consolidate the three separate clippy deny attributes (unwrap_used, expect_used, panic) into a single attribute line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
vlayer-xyz__vlayer__2211 | vlayer-xyz/vlayer | 2,211 | defect | a4a8dcd64b376043868331ac0d0d1cc2979769c6 | d40144103d3538f3fad3040fab70b3f49fb59e49 | [ENGA-595] Add data limits flags to cli | It adds flags for MAX_SENT_DATA MAX_RECV_DATA. What would be nice to have in next PR is better integration test with some spy that asserts params of request sent to notary server.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Added options t... | diff --git a/rust/cli/src/commands/web_proof.rs b/rust/cli/src/commands/web_proof.rs
index 6cec8078ee..56a6cdaf7c 100644
--- a/rust/cli/src/commands/web_proof.rs
+++ b/rust/cli/src/commands/web_proof.rs
@@ -18,6 +18,8 @@ pub enum Scheme {
}
const DEFAULT_NOTARY_URL: &str = "https://test-notary.vlayer.xyz/v0.1.0-alp... | 5 | 1 | 0 | [{"id": "G0", "claim": "The assertion in test_limits_too_low should be formatted on a single line per the linter, and the new CLI args would benefit from doc comments explaining their purpose.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The D... | null |
vlayer-xyz__vlayer__2216 | vlayer-xyz/vlayer | 2,216 | defect | b7b8d0b84cbad493cb2421bfb4fe930a0599569e | e71eb5a7e2acd91d3964f897394404af8df8a5c4 | Update `TeleportOnUnconfirmed` error message |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **Bug Fixes**
- Enhanced error messages for teleportation attempts to unconfirmed blocks by providing detailed context, including target block, latest confirmed block, and chain ID.
- **Tests**
- Updated tests ... | diff --git a/rust/services/call/engine/src/verifier/teleport.rs b/rust/services/call/engine/src/verifier/teleport.rs
index bbbdbcaf94..f813abf956 100644
--- a/rust/services/call/engine/src/verifier/teleport.rs
+++ b/rust/services/call/engine/src/verifier/teleport.rs
@@ -20,8 +20,14 @@ pub enum Error {
L2OutputHash... | 1 | 1 | 0 | [{"id": "G0", "claim": "The error message should say the 7 days is the Optimism dispute window and link to the Optimism fault-proofs explainer instead of saying \"Time to confirm is 7 days.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vlayer-xyz__vlayer__2244 | vlayer-xyz/vlayer | 2,244 | defect | 2aaf63c615e2c0d1b4433b6982ce2429b410f3d8 | 2fd52e923b5fdc39538a52f8be243ae63dfa2e64 | Fix teleport | Teleport was not working:
* The structure of anchor registry smart contracts changed and we were reading zero slots
This PR:
* Tests both AnchorStateRegistry as well as SequencerClient as well as them together
* Adds extensive logging
* Fixes teleport
* Transitions AnchorStateRegistry to operate on a higher lev... | diff --git a/rust/chain/src/optimism.rs b/rust/chain/src/optimism.rs
index d95a646810..ba67751f2a 100644
--- a/rust/chain/src/optimism.rs
+++ b/rust/chain/src/optimism.rs
@@ -30,7 +30,7 @@ impl ChainSpec {
anchor: self.anchor_chain,
});
};
- info!("Chain {} commits into {}"... | 1 | 1 | 0 | [{"id": "G0", "claim": "The literal 1 passed as the game type in `anchorsCall { _0: 1 }` is a magic number and should be named.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vlayer-xyz__vlayer__2269 | vlayer-xyz/vlayer | 2,269 | defect | affc5876ec588db36591d6f737c70ea887460a72 | 25c3651fd1b13865c4a931aada8e82abeb7c380a | Pociej kuba/jwt environment |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Added support for specifying an environment (Test or Mainnet) in JWT tokens.
- JWT validation now verifies that the token's environment matches the server's configured environment, returning a... | diff --git a/rust/jwt/src/lib.rs b/rust/jwt/src/lib.rs
index b4613f2529..d5b5c8d070 100644
--- a/rust/jwt/src/lib.rs
+++ b/rust/jwt/src/lib.rs
@@ -5,6 +5,14 @@ pub use jsonwebtoken::{
};
use serde::{Deserialize, Serialize};
+#[derive(Debug, Clone, Serialize, Deserialize, Default, PartialEq)]
+#[serde(rename_all = "... | 4 | 4 | 0 | [{"id": "G0", "claim": "Derive Copy on the new Environment enum, since it is a cheap u2-like type, so the .clone()s on it (e.g. in the test helper) can be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Write the declaration as `pub struct Error(... | null |
vlayer-xyz__vlayer__2274 | vlayer-xyz/vlayer | 2,274 | defect | 5c4ff8be93b778f90629eaf245a36258fe324735 | 6ceaa28966a6fc613363912e789992116b9b023f | fix(call_server): format env validation error response as json |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **Bug Fixes**
- Improved enum parsing to allow case-insensitive string inputs for environment selection.
- Standardized enum serialization to use lowercase strings for proof modes.
- **New Features**
- Enhanced ... | diff --git a/rust/jwt/src/lib.rs b/rust/jwt/src/lib.rs
index a4b9d9869c..f49b18757d 100644
--- a/rust/jwt/src/lib.rs
+++ b/rust/jwt/src/lib.rs
@@ -8,6 +8,7 @@ use strum::{Display, EnumString};
#[derive(Debug, Clone, Copy, Serialize, Deserialize, Default, PartialEq, EnumString, Display)]
#[serde(rename_all = "lowerc... | 1 | 1 | 1 | [{"id": "G0", "claim": "The JWT error response should use HTTP 403 instead of 401, because the request is authenticated but the environment claim is not valid, which is an authorization problem rather than missing authentication credentials.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "in... | null |
vlayer-xyz__vlayer__2283 | vlayer-xyz/vlayer | 2,283 | defect | 6f3ca1b7a4de0c58f7cc24f043f330cdbfe06190 | e294e405a0c3b6b31eff7a034ca541fc0b0461ce | feat(cli,web_prover): allow specifying HTTP method via -X,--request flags (mirrors cURL flags) | Additionally, this PR
* adds a dummy POST handler for `/auth_header_require` route in the `test-json-server`
* refactors the use of `HashMap` for `BTreeMap` for input HTTP headers so that we preserve the insertion order so that we make each run deterministic and replicable
* refactors all interfaces that accepted `&... | diff --git a/packages/test-json-server/src/index.ts b/packages/test-json-server/src/index.ts
index 5817283282..86c16b71d9 100644
--- a/packages/test-json-server/src/index.ts
+++ b/packages/test-json-server/src/index.ts
@@ -1,5 +1,8 @@
-import { Elysia } from "elysia";
+import { Elysia, type Context, t } from "elysia";
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new -X/--request HTTP method option should default to GET when no body is present and POST otherwise, instead of always defaulting to Method::default() (GET).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
vlayer-xyz__vlayer__2389 | vlayer-xyz/vlayer | 2,389 | defect | e652e4ce3f0cebd639308904fd66cc3205278cb1 | 1a1797e8368696add0e474a4ba88370afd97da0d | chore(web_prover): use builder pattern for creating NotaryConfig |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Introduced a builder pattern for creating notary configurations, providing more flexible and customizable setup options.
- Expanded the public API to include builder-related types for notary c... | diff --git a/Cargo.lock b/Cargo.lock
index b04be531fc..7bf0b9e029 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14890,7 +14890,6 @@ dependencies = [
"anyhow",
"bincode",
"constcat",
- "derive-new",
"derive_builder 0.12.0",
"derive_more 1.0.0",
"hex",
diff --git a/rust/cli/src/commands/web_proof.rs b/rust/cli... | 4 | 1 | 0 | [{"id": "G0", "claim": "The builder and config types imported by the integration tests are not publicly re-exported in web_prover/src/lib.rs, and public re-exports should be added so the tests compile.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "no... | null |
vlayer-xyz__vlayer__2390 | vlayer-xyz/vlayer | 2,390 | defect | 8731d63142a381b2fef1e33a40196205ea3d38e9 | c178c2e1678ac6ad7dfe0aa2f1ac2f58a1c03970 | Improve Host errors | A bunch of refactors improving Host errors
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **Bug Fixes**
- Improved error messages for clarity and consistency across various modules, including shorter and more descriptive error texts.
- Enhanced error details fo... | diff --git a/rust/services/call/host/src/host.rs b/rust/services/call/host/src/host.rs
index befbaa8edc..7c55c4b834 100644
--- a/rust/services/call/host/src/host.rs
+++ b/rust/services/call/host/src/host.rs
@@ -19,7 +19,7 @@ use common::{GuestElf, verifier::zk_proof};
pub use config::Config;
use derive_new::new;
use... | 4 | 2 | 1 | [{"id": "G0", "claim": "The 'Transaction reverted: <empty>' message should provide more context, or at the very least explain what <empty> actually means.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The RawBytes revert message 'Transaction reve... | null |
vlayer-xyz__vlayer__2471 | vlayer-xyz/vlayer | 2,471 | defect | b6d5438e5ee0fbe832574619d75857919aa465dc | cfab38688234446cdeefc1057b20a7a566d792d5 | feat: Add cycles tracking to gas meter service |
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
- **New Features**
- Added support for updating cycle usage information during the proving stage, enhancing tracking and visibility of resource consumption.
- **Bug Fixes**
- Improved logging to provide feedback on ... | diff --git a/rust/services/call/server_lib/src/gas_meter.rs b/rust/services/call/server_lib/src/gas_meter.rs
index 396da3f667..fdd3c05225 100644
--- a/rust/services/call/server_lib/src/gas_meter.rs
+++ b/rust/services/call/server_lib/src/gas_meter.rs
@@ -64,6 +64,17 @@ impl Method for SendMetadata {
const METHOD_N... | 4 | 4 | 0 | [{"id": "G0", "claim": "The new test's name `test_cycles_integration_properly` should be changed to something more descriptive such as `test_update_cycles_is_called_exactly_once_in_gas_meter`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `... | null |
vlayer-xyz__vlayer__2511 | vlayer-xyz/vlayer | 2,511 | defect | cbd89d37bba9b0814dd6f748ada3149391d08242 | 72e8c17ba655854f68ee6e66ed43a1812109e3f6 | feat: Create `CycleEstimator` | 1. Created `CycleEstimator` and implemented `estimate` function for it. It will be used inside the call server.
2. Moved `call` function to `test_harness` to make it accessible for use in `CycleEstimator` tests.
3. Added `preflight_raw_result` test function. The original `preflight` test function returns decoded resu... | diff --git a/rust/services/call/host/src/cycle_estimator.rs b/rust/services/call/host/src/cycle_estimator.rs
new file mode 100644
index 0000000000..f62421d990
--- /dev/null
+++ b/rust/services/call/host/src/cycle_estimator.rs
@@ -0,0 +1,81 @@
+use bytes::Bytes;
+use call_engine::Input;
+use risc0_zkvm::ExecutorEnv;
+us... | 12 | 6 | 1 | [{"id": "G0", "claim": "The workaround comment for `.segment_limit_po2(22)` points to a 404 repository and should be updated to a valid issue/PR or removed.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Errors in the `estimate` pipeline (`.write(in... | null |
vlayer-xyz__vlayer__2527 | vlayer-xyz/vlayer | 2,527 | defect | 92dceee09a2f174faf794c75127347366e8629bd | 781168849e8010bff2a799d22093a4cf65ef173c | feat!: Don't run proving if `cycles_limit` is below `cycle_estimate` | To be refactored in the next PR.
### Refactor
1. `v_call_body` test function now takes `gas_limit` as a parameter instead of using the constant `GAS_LIMIT`.
2. Renamed `RetryRequest` struct to `RetryWhilePending` for better clarity.
### Features
1. Added a new functionality that updates a proving entry state t... | diff --git a/packages/sdk/src/api/lib/types/vlayer.ts b/packages/sdk/src/api/lib/types/vlayer.ts
index 9c1d5a71f5..9c46c92c16 100644
--- a/packages/sdk/src/api/lib/types/vlayer.ts
+++ b/packages/sdk/src/api/lib/types/vlayer.ts
@@ -17,7 +17,6 @@ type Calldata = string;
export type CallParams = {
to: Address;
data... | 20 | 14 | 4 | [{"id": "G0", "claim": "The insufficient-gas error log duplicates the error message; consider building the Error and logging it via its Display implementation instead.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Leave the testnet default gas ... | null |
vlayer-xyz__vlayer__2532 | vlayer-xyz/vlayer | 2,532 | defect | 8a09298ff948fb3cb7ceabd2d504ab4333197243 | 96d0ec21304fc62da2bbf02447e0e4f6ecd4de21 | fix: User friendly errors when gas limit is not enough for proving | - Similar to https://github.com/vlayer-xyz/vlayer/pull/2531
- Detects and prints a proper message when proving requires more gas than user provided `gas_limit`.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit
* **New Features**
* Improved error handling for gas... | diff --git a/rust/services/call/host/src/host/error/preflight.rs b/rust/services/call/host/src/host/error/preflight.rs
index 9f099c7957..519405b7be 100644
--- a/rust/services/call/host/src/host/error/preflight.rs
+++ b/rust/services/call/host/src/host/error/preflight.rs
@@ -4,7 +4,7 @@ use call_engine::{
evm::{sel... | 3 | 3 | 0 | [{"id": "G0", "claim": "ExecutionError::is_gas_limit_exceeded could be optimized per static analysis: made a const fn with the nested match collapsed into a single matches! pattern.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Error::is_gas_limit_... | null |
vlayer-xyz__vlayer__698 | vlayer-xyz/vlayer | 698 | defect | 36a7e913e0e7e91cfee945fff8befc337dcf8d08 | c35b72a142cf5dc4308a430a9ff9be38402531dd | Append prepend in guest | This PR implements append_prepend in guest.
Host implementation and tests are on the way.
Host implementation will need working DB to check - what was the last saved block. We also need to design a strategy - how many blocks do we want to add on the left. But from the guest POV - all is obvious and this PR defines th... | diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index 51bd986325..5b13f19ac6 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -1593,6 +1593,7 @@ dependencies = [
"alloy-rlp-derive",
"anyhow",
"as-any",
+ "auto_impl",
"dyn-clone",
"lazy_static",
"revm",
@@ -1693,9 +1694,9 @@ checksum = "1fd0f2584146f6f2e... | 7 | 6 | 0 | [{"id": "G0", "claim": "Error messages should follow the Rust convention of concise lowercase sentences without trailing punctuation.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should pick one casing (lowercase or uppercase) for error... | null |
vlayer-xyz__vlayer__760 | vlayer-xyz/vlayer | 760 | defect | ef3ab5a5b984ea532d5fa7a7cdd9ac315681165d | 3a54c1f4805150ba6b2d12dae1c13c2086b4bc6b | Internal call panic capture | This PR catches a panic that is thrown by engine when internal call encounters an error.
We can't propagate this error as EVM expects CallResult and not Result<CallResult> in Inspector.
Catching a panic in Rust requires all the captured values to be UnwindSafe https://doc.rust-lang.org/std/panic/trait.UnwindSafe.html... | diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index 33a3338c13..48452f83cc 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -7065,6 +7065,7 @@ dependencies = [
"auto_impl",
"block_header",
"call_engine",
+ "derivative",
"ethers-core",
"ethers-providers",
"serde",
diff --git a/rust/Cargo.toml b/rust/Ca... | 3 | 3 | 0 | [{"id": "G0", "claim": "Prefer matching on the error variant with matches! over asserting on the exact error string, which the author concedes is overly strict.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Extract the chained RwLock-access expression i... | null |
vlayer-xyz__vlayer__785 | vlayer-xyz/vlayer | 785 | defect | ea9e4b50d27f54278aa56cebaea8c207809c470f | d8432ce2d2e64afb7d46caef9f87b16464842048 | Server: Configurable host and port to bind on | ```
Usage: vlayer serve [OPTIONS]
Options:
--rpc-url <RPC_URL>
--proof <PROOF> [possible values: fake, groth16]
--host <HOST> Host to listen on, defaults to 127.0.0.1
-p, --port <PORT> Port to listen on, defaults to 3000
-h, --help Print help
-V, --ve... | diff --git a/rust/cli/src/commands/args.rs b/rust/cli/src/commands/args.rs
index c2dc45366b..b256393fd1 100644
--- a/rust/cli/src/commands/args.rs
+++ b/rust/cli/src/commands/args.rs
@@ -21,6 +21,14 @@ pub(crate) struct ServeArgs {
#[arg(long, value_enum)]
pub(crate) proof: Option<ProofModeArg>,
+
+ /// ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use clap's default_value attribute on the host argument instead of documenting the default only in a doc comment.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vlayer-xyz__vlayer__933 | vlayer-xyz/vlayer | 933 | defect | 0662faccb005d1595a23fb107c459cfdf65440c3 | c7a50042afe42a19af8a35fb911fa033590ebd14 | Replace httpmock with mockito and enable using proof client on host | * Replace `httpmock` with `mockito`
* Prevent dropping chain proof mock server which was causing undeterministic test outcome
* Enable using chain proof client in `call::Host`
* Create chain proof server in `cheatcode_inspector` to make `vlayer-test` pass | diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index 8d79d237e2..227bd728f0 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -1044,132 +1044,13 @@ dependencies = [
"serde_json",
]
-[[package]]
-name = "async-attributes"
-version = "1.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-chec... | 9 | 7 | 0 | [{"id": "G0", "claim": "The expected panic message in mock_not_called_panics should be written as a multi-line string literal instead of one long escaped line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test asserts mockito's exact panic... | null |
vlingo__xoom-examples__11 | vlingo/xoom-examples | 11 | defect | b0f4526ee3fde94a69ed4df76c21de2dbc4dc2df | 8a5d31cb108661c798806ef6ef2ffd400a61794b | Message bus example | Hey Vaughn, it occurs to me that there are any number of things that I did in this example that you may object to or prefer done differently. So, before completing the class comments, I wanted you to have a look.
Examples of what you may object to include: initialize() method within the actors called from their con... | diff --git a/vlingo-reactive-messaging-patterns/src/main/java/io/vlingo/reactive/messaging/patterns/messagebus/AbstractTradingActor.java b/vlingo-reactive-messaging-patterns/src/main/java/io/vlingo/reactive/messaging/patterns/messagebus/AbstractTradingActor.java
new file mode 100644
index 00000000..f5b85107
--- /dev/nu... | 6 | 6 | 2 | [{"id": "G0", "claim": "Have every concrete Actor override protected void beforeStart() and delete the abstract initialize() method, since beforeStart() is always the first message sent to every Actor after it is created.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "... | null |
vlingo__xoom-examples__12 | vlingo/xoom-examples | 12 | defect | b0f4526ee3fde94a69ed4df76c21de2dbc4dc2df | d9a9bff691cf5a9795973a531f317d0d53fddc54 | Example application using the event journal | This is an example on how to use the EventJournal with Postgres and flyway to apply the needed migrations.
| diff --git a/pom.xml b/pom.xml
index 5a41222b..159d8ecb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,10 +24,11 @@
</dependencies>
<modules>
- <module>vlingo-actors-playground</module>
- <module>vlingo-http-backservice</module>
- <module>vlingo-http-frontservice</module>
- <module>vlingo-reactive-messag... | 5 | 1 | 0 | [{"id": "G0", "claim": "The Bootstrap demo loop should use TestUntil instead of Thread.sleep-based pacing because sleeping will break on different machines and environments.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The journal table columns ev... | null |
vlingo__xoom-examples__3 | vlingo/xoom-examples | 3 | defect | ec6a06eea42a74fa2bf8ee764dd149eb5927d2ff | 61d3d056f38d907b626e892fe8405f48747a620b | Ambrosio | Requesting merge for Message Filter Pattern implementation. | diff --git a/vlingo-reactive-messaging-patterns/src/main/java/io/vlingo/reactive/messaging/patterns/messagefilter/InventorySystem.java b/vlingo-reactive-messaging-patterns/src/main/java/io/vlingo/reactive/messaging/patterns/messagefilter/InventorySystem.java
new file mode 100644
index 00000000..3c8fb428
--- /dev/null
+... | 2 | 1 | 1 | [{"id": "G0", "claim": "Asks whether the until.happened() call in InventorySystemMessageFilter's filtered-out branch is needed.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Refactor the InventorySystem protocol to take the Order directly (orderPlaced(... | null |
vllm-project__guidellm__162 | vllm-project/guidellm | 162 | defect | 66017f5d4581124d693fa4343939ed8b8fd94947 | 6f275d7330453499a02294a75a7edad4b00cf535 | Feat/add preprocess dataset | Added a new command - preprocess. This command allows the users to preprocess dataset (from HF, file etc.), and limit the prompts the specific token sizes distribution. The generated dataset is saved to a local file and optionally to HF, and can later be used by GuideLLM benchmark. Solves #106 | diff --git a/src/guidellm/__main__.py b/src/guidellm/__main__.py
index d81b7ddf7..3262de8a7 100644
--- a/src/guidellm/__main__.py
+++ b/src/guidellm/__main__.py
@@ -8,6 +8,7 @@
from guidellm.backend import BackendType
from guidellm.benchmark import ProfileType, benchmark_generative_text
from guidellm.config import p... | 18 | 18 | 10 | [{"id": "G0", "claim": "The preprocess group help statement should be more generic so it is not specific to datasets.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add parentheses around the help string argument to better match the repo's code styling."... | null |
vllm-project__guidellm__17 | vllm-project/guidellm | 17 | defect | a6d115d7a6b4dab238e9525f4b219e992416ec2c | 3e8a9a557461b0488be046e88379b723636a2a4a | 👔 Project settings is now encapsulated into `guidellm.config` module | * The module is currently has only `__init__` file
* All `os.getenv` replaced with `pydantic_settings` facade
* `GUIDELLM__` env prefix is set | diff --git a/.env.example b/.env.example
deleted file mode 100644
index b99b04f7b..000000000
--- a/.env.example
+++ /dev/null
@@ -1,9 +0,0 @@
-# OpenAI compatible server address.
-
-# If you are going to run custom OpenAI API compatible service change this configuration.
-# Could be specified by --openai-base-url CLI p... | 5 | 5 | 1 | [{"id": "G0", "claim": "The sentence \"This will run automatic code styling using `black` and `isort`...\" at the end of DEVELOPING.md is out of place, apparently a miscopy, and should be removed or put where it belongs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"... | null |
vllm-project__guidellm__188 | vllm-project/guidellm | 188 | defect | d401ebdaa42996f2d28aade66caf6e31d0778412 | cbe0a3c573e49cf43363623462675fc8aaedbbaf | Fix "Event loop Closed" error | By default httpx will keep the last few connections open in a pool for re-use. Since we create the httpx connection inside an asyncio task, it is bound to the lifetime of the task rather than the httpx client. Thus when the client attempts to reuse the connection in a new task it fails. There may be performance implica... | diff --git a/src/guidellm/backend/openai.py b/src/guidellm/backend/openai.py
index e3f239637..a6b33d489 100644
--- a/src/guidellm/backend/openai.py
+++ b/src/guidellm/backend/openai.py
@@ -366,6 +366,7 @@ def _get_async_client(self) -> httpx.AsyncClient:
http2=self.http2,
timeout=self.... | 1 | 1 | 1 | [{"id": "G0", "claim": "Hardcoding max_keepalive_connections=0 disables all HTTP connection reuse and could hurt performance; the PR should instead keep connection reuse and release the connection pools via aclose/close (e.g. on shutdown), with alternatives such as a configurable keepalive limit or a per-event-loop sha... | null |
vllm-project__guidellm__22 | vllm-project/guidellm | 22 | defect | 75dac3543eb0659db810bbc1c75beda544cbffed | 7b815733cb0cdef681afca62940301756c36e0c9 | Add Serializable Functionality and GuidanceReport Class for Enhanced Results Management | ## Summary
Introduces the `Serializable` class to provide serialization capabilities for core Pydantic classes, along with the new `GuidanceReport` class to manage multiple benchmarking reports. The additions add in native support for loading and saving to disk in json and yaml formats.
## Details
- **Serializ... | diff --git a/src/guidellm/core/__init__.py b/src/guidellm/core/__init__.py
index 79b93a3fd..bbb7803a0 100644
--- a/src/guidellm/core/__init__.py
+++ b/src/guidellm/core/__init__.py
@@ -1,4 +1,5 @@
from .distribution import Distribution
+from .report import GuidanceReport
from .request import TextGenerationRequest
fr... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the new `--save-path` CLI option to `--output-file` or `--output` since that naming is more conventional for report-generating open-source libraries and clearer for users.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
vllm-project__guidellm__230 | vllm-project/guidellm | 230 | defect | 0d9a5399f9fc4d5ff6ef92fd2eb6ca7e7551d234 | 54d13bb81c574916448e15bc3d6e116c53684109 | Add CLI options for backend args (like headers and verify) | This PR adds the ability to configure custom request headers and control SSL certificate verification when running benchmarks.
* The OpenAIHTTPBackend now supports passing custom headers and a verify flag to disable SSL verification.
* Headers are now merged with the following precedence: CLI arguments (--ba... | diff --git a/docs/guides/cli.md b/docs/guides/cli.md
index d30962bdc..45c9ae157 100644
--- a/docs/guides/cli.md
+++ b/docs/guides/cli.md
@@ -1 +1,37 @@
-# Coming Soon
+# CLI Reference
+
+This page provides a reference for the `guidellm` command-line interface. For more advanced configuration, including environment vari... | 4 | 4 | 1 | [{"id": "G0", "claim": "Backend-specific arguments should be nested under --backend_args and parsed inside the backend's __init__, instead of adding dedicated --target-header and --target-skip-ssl-verify CLI options.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.