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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tracel-ai__burn__4769 | tracel-ai/burn | 4,769 | defect | c33867c60a99958aafd4d05df782c68d242a6510 | 4bbc9545edd91bc3ec83dcb354d883f7ab073fe4 | burn-flex: f16 follow-up to #4761 (enable tests, fix mean overflow, grid_sample f16, quantization) | Follow-up to #4761. Enables the existing float test suite for burn-flex with `FloatElem = f16` and fixes the bugs that surface. Also brings SIMD to the half-precision mean path.
## Fixes
- **Reduction overflow**: `mean_dim` / `mean` for f16/bf16 materialised intermediate sums as f16 before dividing, clipping to inf w... | diff --git a/crates/burn-backend-tests/tests/tensor/float/ops/aggregation.rs b/crates/burn-backend-tests/tests/tensor/float/ops/aggregation.rs
index 7fe47f2222..1ba070e7dd 100644
--- a/crates/burn-backend-tests/tests/tensor/float/ops/aggregation.rs
+++ b/crates/burn-backend-tests/tests/tensor/float/ops/aggregation.rs
@... | 4 | 2 | 1 | [{"id": "G0", "claim": "In mean_dim_half's last-dim path, rows = outer_size.max(1) makes sum_rows_f32 (and the scalar fallback) index past the end of an empty buffer and produce an element count that disagrees with out_shape when a non-reduced dimension is zero-sized (e.g. shape [0, K] reducing dim=1); the comment asks... | null |
tracel-ai__burn__4777 | tracel-ai/burn | 4,777 | defect | c33867c60a99958aafd4d05df782c68d242a6510 | f5d564c67f4ae54fee48f1f5b5f24eb27996b702 | Fix burn-flex attention rejecting broadcasted mask/bias | ### Related Issues/PRs
Fixes #4772.
Surfaces (and defers to) #4778 for a latent cubecl flash-attention bug - see "Latent cubecl bug exposed" below.
### Changes
`attention_naive` and `attention_flash` in `burn-flex` asserted strict shape equality between the optional mask/bias and the full `[batch, heads, seq_q, seq_... | diff --git a/crates/burn-backend-tests/tests/tensor/float/module/attention.rs b/crates/burn-backend-tests/tests/tensor/float/module/attention.rs
index 1c203f59dab..a63f6bf4c0c 100644
--- a/crates/burn-backend-tests/tests/tensor/float/module/attention.rs
+++ b/crates/burn-backend-tests/tests/tensor/float/module/attentio... | 2 | 2 | 0 | [{"id": "G0", "claim": "broadcast_attn_mask_bias always calls expand(...).to_contiguous(), materializing broadcasted masks/biases into a full [batch, heads, seq_q, seq_kv] buffer, which can be extremely memory-heavy on the flash path and negate flash attention's avoidance of full score-matrix-sized allocations; conside... | null |
tracel-ai__burn__4806 | tracel-ai/burn | 4,806 | defect | 6c360d47b7dc23e79f1a7cc76433218f0cbf52aa | 3fd20382b723baf0dded2ce2fae97637583f4f1e | Fix conv x-backward padding_out bug | ## Summary
Fixes #4799.
`calculate_padding_out` in `burn-backend::ops::modules::conv` feeds the transpose conv used by `conv{1,2,3}d_x_backward`. Its ceil/floor formula only accounted for 0- or 1-element drops, so when a forward conv dropped 2+ tail inputs (e.g. `kernel=4, stride=4, L_in=1603` drops 3), the backward ... | diff --git a/crates/burn-backend-tests/tests/autodiff/conv1d.rs b/crates/burn-backend-tests/tests/autodiff/conv1d.rs
index 2932d630a9a..94ec0dcca12 100644
--- a/crates/burn-backend-tests/tests/autodiff/conv1d.rs
+++ b/crates/burn-backend-tests/tests/autodiff/conv1d.rs
@@ -1,5 +1,9 @@
use super::*;
-use burn_tensor::{S... | 2 | 2 | 0 | [{"id": "G0", "claim": "The second copy of calculate_padding_out in crates/burn-cubecl/src/kernel/conv/backward_data/fallback.rs still uses the old ceil/floor-based formula, so for stride != 1 that backend path keeps the same padding_out shape bug; it should be updated (or deduplicated into a shared helper) so all back... | null |
tracel-ai__burn__4813 | tracel-ai/burn | 4,813 | defect | 4f8245d555ef2b44b7b4f94c2fbb40cf8b700bd9 | 78fd95a00e4d365c127e0fff3a488896b3586219 | Add native det (determinant) tensor operation | ## Pull Request Template
### Checklist
- [x] Confirmed that `cargo run-checks` command has been executed.
- [x] Made sure the book is up to date with changes in this PR.
### Related Issues/PRs
Closes [Add native det() (determinant) tensor operation #4609](https://github.com/tracel-ai/burn/issues/4609)
#... | diff --git a/burn-book/src/building-blocks/tensor.md b/burn-book/src/building-blocks/tensor.md
index 3f45ff2ddf3..c377043ac87 100644
--- a/burn-book/src/building-blocks/tensor.md
+++ b/burn-book/src/building-blocks/tensor.md
@@ -423,6 +423,7 @@ strategies.
| Burn API | PyTorch... | 9 | 9 | 5 | [{"id": "G0", "claim": "When F16/BF16 inputs are upcast, the base-case early returns in det return the F32 result without casting back to the original dtype, so the output dtype depends on matrix size; every return path should cast back to original_dtype.", "category": "correctness", "verdict": "supported", "priority":... | null |
tracel-ai__burn__4829 | tracel-ai/burn | 4,829 | defect | ddbf9b28c7caaa9c3c9527bc5dd77e68197e1c1e | 6afea1f390fb7500c7055dc1886f52cbf66f89e9 | Fix `CrossEntropyLoss` with probabilities | ### Checklist
- [ ] Confirmed that `cargo run-checks` command has been executed.
- [ ] Made sure the book is up to date with changes in this PR.
### Related Issues/PRs
Originally reported [on discord](https://discord.com/channels/1038839012602941528/1059209073784008835/1494689897557131324)
### Changes
C... | diff --git a/crates/burn-nn/src/loss/cross_entropy.rs b/crates/burn-nn/src/loss/cross_entropy.rs
index 27e9fc40092..9eed46e7bb4 100644
--- a/crates/burn-nn/src/loss/cross_entropy.rs
+++ b/crates/burn-nn/src/loss/cross_entropy.rs
@@ -137,11 +137,7 @@ impl<B: Backend> CrossEntropyLoss<B> {
alpha: f32,
) -> ... | 3 | 2 | 1 | [{"id": "G0", "claim": "forward_default computes the log of the full [batch, classes] tensor even when logits=false, though only the target class's log-probability is needed; consider gathering the target probabilities first and then applying log, reducing work from O(batch*classes) to O(batch) and avoiding log(0) for ... | null |
tracel-ai__burn__4873 | tracel-ai/burn | 4,873 | defect | 37e7e613286b1892480e5cc0979ae221685733f9 | 92da9963d4f31ce0d95c06ed0e216eba2d2256e1 | All reduce backward | ## Pull Request Template
### Checklist
- [X] Confirmed that `cargo run-checks` command has been executed.
- [ ] Made sure the book is up to date with changes in this PR.
### Changes
Added the backward function to `Autodiff`'s `all_reduce` + some unit tests.
### Testing
Unit tests
| diff --git a/crates/burn-autodiff/src/ops/distributed.rs b/crates/burn-autodiff/src/ops/distributed.rs
index dd23eb00612..f27551a04ba 100644
--- a/crates/burn-autodiff/src/ops/distributed.rs
+++ b/crates/burn-autodiff/src/ops/distributed.rs
@@ -8,7 +8,11 @@ use burn_backend::{
tensor::FloatTensor,
};
-use crate... | 1 | 1 | 0 | [{"id": "G0", "claim": "A clarifying comment should be added to the AllReduce backward noting that the backward uses the same reduce op and the backend handles scaling (e.g., ncclAvg for mean), so readers do not assume the backward scaling is wrong for ReduceOperation::Mean.", "category": "documentation", "verdict": "s... | null |
tracel-ai__burn__4903 | tracel-ai/burn | 4,903 | defect | bd1e79d375f5fb3ceaabc898a76e5fc653f5ebb1 | b52ba9caf16aff5f58b593c8f6d108e14b176824 | Adding complex to complex FFT implementation | # Add complex-to-complex FFT (`cfft`) to the signal module
## Checklist
- [x] Confirmed that `cargo run-checks` command has been executed. *(Note: Ran targeted checks instead due to local CUDA SDK limitations, see Testing section below for details).*
- [ ] Made sure the book is up to date with changes in this PR... | diff --git a/crates/burn-backend-tests/tests/cubecl/fft.rs b/crates/burn-backend-tests/tests/cubecl/fft.rs
index 504a7a91b49..d0db977d47d 100644
--- a/crates/burn-backend-tests/tests/cubecl/fft.rs
+++ b/crates/burn-backend-tests/tests/cubecl/fft.rs
@@ -1,5 +1,5 @@
use super::*;
-use burn_tensor::signal::{irfft, rfft};... | 7 | 7 | 2 | [{"id": "G0", "claim": "fft_size is computed via signal_re.dims()[dim] before dim is validated, so an out-of-range dim panics there instead of producing the consistent TensorCheck::check_dim error from rfft; validate dim (check!(TensorCheck::check_dim::<D>(dim))) and move the fft_size computation after validation.", "c... | null |
tracel-ai__burn__4904 | tracel-ai/burn | 4,904 | defect | bd1e79d375f5fb3ceaabc898a76e5fc653f5ebb1 | bd04cc914a2f0a5f4d51f02fbe1bb0707f65c184 | add fusion integration for argtopk (cubecl) |
### Checklist
- [ ] Confirmed that `cargo run-checks` command has been executed.
- [ ] Made sure the book is up to date with changes in this PR.
### Related Issues/PRs
_Provide links to relevant issues and dependent PRs._
### Changes
implement argtopk functions for fusion
### Testing
```sh
# ac... | diff --git a/crates/burn-backend-tests/tests/cubecl/reduce.rs b/crates/burn-backend-tests/tests/cubecl/reduce.rs
index 21fc57c19a6..d65f10eb337 100644
--- a/crates/burn-backend-tests/tests/cubecl/reduce.rs
+++ b/crates/burn-backend-tests/tests/cubecl/reduce.rs
@@ -35,6 +35,103 @@ fn reduction_argtopk_simple() {
ac... | 2 | 2 | 0 | [{"id": "G0", "claim": "The TODO comments carried over into the arg reductions have been addressed and could be removed in the other arg reductions too.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new name `reduce_len` should rather be `a... | null |
tracel-ai__burn__4909 | tracel-ai/burn | 4,909 | defect | bde752663d0362de08c2839cddbe53f67810954d | e41c220d0810a7071048165e6f165aab10eb5f64 | add autodiff for scatter_nd min/max/mul | ## Pull Request Template
### Checklist
- [x] Confirmed that `cargo run-checks` command has been executed.
- [x] Made sure the book is up to date with changes in this PR.
### Related Issues/PRs
Builds on top of #4709
Closes issue #4433
### Changes
At the moment backward pass throws for `scatter_n... | diff --git a/burn-book/src/building-blocks/tensor.md b/burn-book/src/building-blocks/tensor.md
index 8f10d405032..fc80bb2d8dd 100644
--- a/burn-book/src/building-blocks/tensor.md
+++ b/burn-book/src/building-blocks/tensor.md
@@ -171,7 +171,7 @@ Those operations are available for all tensor kinds: `Int`, `Float`, and `B... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new scatter_nd Mul backward may return incorrect gradients for duplicate indices (it would give grad * val_2 instead of grad * val_1 * val_2 for data[idx]); the reviewer asks to instead add a doc note to scatter_nd explicitly stating that duplicate indices are not supported in general.", "ca... | null |
tracel-ai__cubecl__1044 | tracel-ai/cubecl | 1,044 | defect | 3c941743d0f1f84e5b22b94402de806812b5c0fc | b529ca8b43f9e5bc6f771febbb3617c629511981 | perf: MMA line size | Change MMA matmul to use the highest contiguous line size present in the matrix, up to 128-bit. This should speed up contiguous loads on HIP.
## Validate your PR with burn.
It is important that you make sure that you don't introduce any bugs in burn.
### Instructions
- [x] Create a new branch or fork of th... | diff --git a/crates/cubecl-core/src/frontend/cmma.rs b/crates/cubecl-core/src/frontend/cmma.rs
index cad638cde1..e94dd77833 100644
--- a/crates/cubecl-core/src/frontend/cmma.rs
+++ b/crates/cubecl-core/src/frontend/cmma.rs
@@ -410,18 +410,29 @@ impl<A: CubePrimitive, B: CubePrimitive, CD: CubePrimitive> MmaDefinition<A... | 2 | 2 | 0 | [{"id": "G0", "claim": "Add comments on top of the frag_c/frag_d accumulator match blocks in the CUDA manual MMA compiler, which are hard to follow without explanation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add comments to the hard-to-f... | null |
tracel-ai__cubecl__1099 | tracel-ai/cubecl | 1,099 | defect | 916653a06885fa25437441b9cc702a7e699a56fa | 557193bad11efe3399fa7baa005ec46ce6549c98 | refactor: Tensor map | Refactors tensor maps to make the kind typed, since it's invalid to use a tiled tensor map with im2col and vice versa. So this should be checked at compile time, and views should only implement the appropriate version of load.
For the purposes of launching, im2col tensor maps now use a layout of `(CoordsDyn, CoordsDyn... | diff --git a/crates/cubecl-core/src/compute/launcher.rs b/crates/cubecl-core/src/compute/launcher.rs
index 2f797ade90..cd4757cfa2 100644
--- a/crates/cubecl-core/src/compute/launcher.rs
+++ b/crates/cubecl-core/src/compute/launcher.rs
@@ -1,6 +1,6 @@
use std::{collections::BTreeMap, marker::PhantomData};
-use crate:... | 2 | 2 | 0 | [{"id": "G0", "claim": "The serde Serialize/Deserialize derives on the tensor-map args and enums in crates/cubecl-runtime/src/tma.rs should be gated behind a serde feature flag.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment should be added exp... | null |
tracel-ai__cubecl__1151 | tracel-ai/cubecl | 1,151 | defect | 74371477c8aff550083a89c8b089130ae9fc0f37 | a86ee38e4ecf36badcadae674abf3b0abb97c6a7 | Fix MLIR pass ordering and add CPU barrier support | I needed some changes to support some models on CPU (yes, I know it's very slow; HPC was down for the weekend, and I wanted to confirm a fix in a different repo was working, so I needed a portable kernel).
Fixes MLIR lowering failure when `scf.if` yields memref results, and adds barrier/sync_cube support for the CPU... | diff --git a/crates/cubecl-core/src/runtime_tests/line.rs b/crates/cubecl-core/src/runtime_tests/line.rs
index 549b878106..95e75475fe 100644
--- a/crates/cubecl-core/src/runtime_tests/line.rs
+++ b/crates/cubecl-core/src/runtime_tests/line.rs
@@ -112,6 +112,57 @@ pub fn test_line_loop_unroll<R: Runtime, F: Float + Cube... | 1 | 1 | 0 | [{"id": "G0", "claim": "The kernel test name kernel_line_cf should probably have a more descriptive name, since it is hard to understand without knowing the MLIR compiler internals and it lives in the general test suite.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tracel-ai__cubecl__1304 | tracel-ai/cubecl | 1,304 | defect | 8a72cb20e2d205ad312fb62de872e7fac00c9fdc | a876b5d44653ed59bfc9cbc8fcd02585ad833508 | Send recv | - Introduce `ServerCommunication::comm_init` to decouple communications initialization from collective operations.
- `CudaServer` now uses NCCL to send data between 2 devices. Which is what is used when doing `to_device` in Burn.
## Validate your PR with burn.
... COMING SOON ...
### Instructions
- [ ] Cre... | diff --git a/crates/cubecl-common/src/device/handle/base.rs b/crates/cubecl-common/src/device/handle/base.rs
index 1c827b16ef..17e498bd6c 100644
--- a/crates/cubecl-common/src/device/handle/base.rs
+++ b/crates/cubecl-common/src/device/handle/base.rs
@@ -25,6 +25,9 @@ pub(crate) trait DeviceHandleSpec<S: DeviceService>... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new DeviceHandle method should be named device_id instead of just id.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The two NCCL calls in send_recv should eventually be split into two server functions so that the cli... | null |
tracel-ai__cubecl__449 | tracel-ai/cubecl | 449 | defect | e26c422a186566e15ceece9b5a426d2adce6edb4 | 75152696478ea7aac922a5ae5c606b531e45dd7f | replace return with a terminate macro | Closes #441
In the future, it would be nice to introduce back the return keyword with the expected behavior. However, I believe this is currently better than the weird behavior of the previous implementation. | diff --git a/crates/cubecl-core/src/prelude.rs b/crates/cubecl-core/src/prelude.rs
index abe236850a..3d6a9c17a4 100644
--- a/crates/cubecl-core/src/prelude.rs
+++ b/crates/cubecl-core/src/prelude.rs
@@ -22,5 +22,5 @@ pub use cubecl_runtime::client::ComputeClient;
pub use cubecl_runtime::server::CubeCount;
pub use c... | 3 | 3 | 2 | [{"id": "G0", "claim": "The Return expression should not be removed altogether from the macro's generate code; like Expression::Continue it should emit a clear \"not supported yet\" error instead of falling through to the ugly default unsupported-expression message.", "category": "design", "verdict": "supported", "prio... | null |
tracel-ai__cubecl__768 | tracel-ai/cubecl | 768 | defect | a9c71dba30b89a2435a17e9b78c1edcacfae0d2a | 306f11bf34d35ac319e8c3be6cd5cfe0d9b37c80 | Feat/tunable priority | ## Validate your PR with burn.
It is important that you make sure that you don't introduce any bugs in burn.
### Instructions
- [ ] Create a new branch or fork of the [burn repo](https://github.com/Tracel-AI/burn)
- [ ] Update the main [Cargo.toml](https://github.com/tracel-ai/burn/blob/40aa993fb5969351a006b... | diff --git a/crates/cubecl-matmul/src/base.rs b/crates/cubecl-matmul/src/base.rs
index bbc44633af..299da43514 100644
--- a/crates/cubecl-matmul/src/base.rs
+++ b/crates/cubecl-matmul/src/base.rs
@@ -292,3 +292,12 @@ pub fn launch_ref<R: Runtime, MP: MatmulPrecision>(
}
}
}
+
+pub(crate) fn gcd(mut a: u32... | 4 | 3 | 1 | [{"id": "G0", "claim": "The gcd helper moved into crates/cubecl-matmul/src/base.rs doesn't have to be exposed anymore, so it should not be made pub(crate) again.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In LoggerConfig::default, the stdout... | null |
tracel-ai__cubecl__787 | tracel-ai/cubecl | 787 | defect | 0af7547eb607c7d0cd22a8a73defe49556caf5d9 | 69c50723215088dbebbb649de826fe2cc1e6a3ad | Feat/static memory pool | ## Validate your PR with burn.
It is important that you make sure that you don't introduce any bugs in burn.
### Instructions
- [ ] Create a new branch or fork of the [burn repo](https://github.com/Tracel-AI/burn)
- [ ] Update the main [Cargo.toml](https://github.com/tracel-ai/burn/blob/40aa993fb5969351a006b... | diff --git a/crates/cubecl-cuda/src/compute/server.rs b/crates/cubecl-cuda/src/compute/server.rs
index 28d7cbca58..f6fe47b9c3 100644
--- a/crates/cubecl-cuda/src/compute/server.rs
+++ b/crates/cubecl-cuda/src/compute/server.rs
@@ -541,6 +541,10 @@ impl ComputeServer for CudaServer {
fn memory_cleanup(&mut self) {
... | 2 | 2 | 0 | [{"id": "G0", "claim": "Fix the typo in the doc comment on client.rs: \"Use an static memory strategy\" should read \"Use a static memory strategy\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In StaticPool::cleanup, the free-slice removal cou... | null |
tracel-ai__cubecl__826 | tracel-ai/cubecl | 826 | defect | e0c77dd10f4624ee8530663ec70d68c542e94d48 | 9f82e2ea5ce5bdf41cc199e80e71f64934c223c4 | [Fix] Int matmul | * Fixes some issues with int matmul particularly in the PTX compiler, and prepares the kernel to accept int tensors.
* Changes the naive kernel to support different input, multiplication and output types.
* Adds some implementations to `CubeOption` that are needed for fusion.
* Fixes kernels using too many registers... | diff --git a/crates/cubecl-cpp/src/cuda/dialect.rs b/crates/cubecl-cpp/src/cuda/dialect.rs
index 834645c45f..acefc60dc0 100644
--- a/crates/cubecl-cpp/src/cuda/dialect.rs
+++ b/crates/cubecl-cpp/src/cuda/dialect.rs
@@ -317,7 +317,8 @@ impl<M: DialectWmmaCompiler<Self>> DialectBindings<Self> for CudaDialect<M> {
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The unconditional __launch_bounds__ may slow kernels down by reducing the number of registers too much; the author should check for a performance regression in burn-bench for matmul.", "category": "performance", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai... | null |
tracel-ai__cubecl__937 | tracel-ai/cubecl | 937 | defect | 68dca0145cfb2766e9c635dfb3bdb0cb2b0e4931 | 76ade78b109a1bff269ac78dd88b21562c860407 | Add `IsNan` and `IsInf` ops | Added `IsNan` and `IsInf` ops, including WGSL via bit checks and MLIR (poylfill, similar bitcheck).
Fixes the current Burn implementation which was not accurate across backends depending on the platform.
## Validate your PR with burn.
It is important that you make sure that you don't introduce any bugs in burn... | diff --git a/crates/cubecl-core/src/frontend/container/line/ops.rs b/crates/cubecl-core/src/frontend/container/line/ops.rs
index a3d06b6979..cac0158715 100644
--- a/crates/cubecl-core/src/frontend/container/line/ops.rs
+++ b/crates/cubecl-core/src/frontend/container/line/ops.rs
@@ -4,7 +4,7 @@ use num_traits::{NumCast,... | 1 | 1 | 1 | [{"id": "G0", "claim": "The added Comparison::IsNan/IsInf arms in ScopeProcessing call sanitize_constant_scalar_ref_var, which would convert the operation's input to bool; they should just have empty bodies.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tracel-ai__cubecl__954 | tracel-ai/cubecl | 954 | defect | 0303f394a4b6dd4658dfb315bb5f1156a729dc19 | 03473ae2803e690f64c85becadf76b11fc857364 | feat: Quantized view | Adds a new kind of launchable view that represents a set of quantized values and scales, and dequantizes on read. The dequantization is entirely transparent to the kernel and happens automatically.
This is the implementation with some tests to ensure the dequantization and unrolling happens correctly. I'll put the int... | diff --git a/crates/cubecl-common/src/lib.rs b/crates/cubecl-common/src/lib.rs
index 7412dafff6..4f87dd9c06 100644
--- a/crates/cubecl-common/src/lib.rs
+++ b/crates/cubecl-common/src/lib.rs
@@ -48,6 +48,9 @@ pub mod reader;
/// Future utils with a compatible API for native, non-std and wasm environments.
pub mod fut... | 2 | 1 | 0 | [{"id": "G0", "claim": "The doc comment on QuantizedView should put the scale-alignment assumption inside a `# Warning` section and document the formula that must be respected (block_size % line_size == 0 style constraint).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"},... | null |
tracel-ai__cubecl__967 | tracel-ai/cubecl | 967 | defect | 54707e8cdecedf47f3fa9a3698322b38aabc4f49 | 4e95afa0547307320b0920d1a00a7e8b70d8274d | fix: Packed matmul | Various fixes for quantized matmul with packed storage.
## Validate your PR with burn.
It is important that you make sure that you don't introduce any bugs in burn.
### Instructions
- [x] Create a new branch or fork of the [burn repo](https://github.com/Tracel-AI/burn)
- [x] Update the main [Cargo.toml](h... | diff --git a/crates/cubecl-matmul/src/base.rs b/crates/cubecl-matmul/src/base.rs
index 2eefe0839a..adb941bcf8 100644
--- a/crates/cubecl-matmul/src/base.rs
+++ b/crates/cubecl-matmul/src/base.rs
@@ -1,11 +1,11 @@
-use cubecl_common::quant::scheme::QuantScheme;
+use cubecl_common::quant::scheme::{QuantScheme, QuantStore... | 4 | 3 | 1 | [{"id": "G0", "claim": "The magic packing value 2 passed to `into_contiguous_packed` for e2m1 native store needs a comment explaining why it is always 2.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comptime assert that view_line_size <= line_... | null |
traceloop__hub__64 | traceloop/hub | 64 | defect | 7af3a857e2af6762c24d6ca1d5d6ca3c7fde8d5b | 748f0f79a7a53b9c05b60c396bacc41683dabd3e | fix(tracing): add vendor reporting for OTEL tracing |
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Adds vendor reporting for OTEL tracing and refactors provider types to use a strongly typed enum for improved trace clarity and type safety.
>
> - **Behavior**:
> - Adds vendor information to tracing for chat, completion, and embedding operations in `otel.rs` and `pip... | diff --git a/src/pipelines/otel.rs b/src/pipelines/otel.rs
index 01ee8e61..7cac5314 100644
--- a/src/pipelines/otel.rs
+++ b/src/pipelines/otel.rs
@@ -172,6 +172,10 @@ impl OtelTracer {
pub fn log_error(&mut self, description: String) {
self.span.set_status(Status::error(description));
}
+
+ pub f... | 5 | 3 | 1 | [{"id": "G0", "claim": "get_vendor_name's hardcoded string mappings should either document the expected case-sensitivity behavior or normalize the input (e.g., to_lowercase) for consistency.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "cargo fmt check ... | null |
traceloop__hub__87 | traceloop/hub | 87 | defect | f419a670591607a2d57c60769025737c099cfd0f | b62f9450b2282d05684c03494973ef0ec4890fbf | fix(vertexai): support API key auth via Gemini Developer API |
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Adds API Key authentication support to Vertex AI, updates documentation, and modifies tests to reflect these changes.
>
> - **Behavior**:
> - Adds API Key and Service Account authentication modes to `VertexAIProvider` in `provider.rs`.
> - Updates `VertexAIProvide... | diff --git a/README.md b/README.md
index d6f36a3d..2b89819d 100644
--- a/README.md
+++ b/README.md
@@ -241,15 +241,31 @@ providers:
### Google VertexAI
+Supports two authentication modes that route to different Google APIs:
+
```yaml
+# Option 1: API Key (uses Gemini Developer API)
+providers:
+ - key: vertexai
... | 6 | 1 | 1 | [{"id": "G0", "claim": "The service-account token path uses expect() calls (missing credentials path, unreadable key file, unparsable key JSON, authenticator build failure) that will panic and crash the request when credentials are misconfigured; return StatusCode::INTERNAL_SERVER_ERROR with error logging instead, and ... | null |
traceloop__hub__98 | traceloop/hub | 98 | defect | 3168e812ed5438960253ac3bf2123b59c76d1d54 | 518fced6d4cc6258ff4b958d5e4cee72e582c89f | feat: add base_url support for OpenAI provider in managed mode |
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Add optional `base_url` support to `OpenAIProviderConfig` for custom API URL configuration in managed mode.
>
> - **Behavior**:
> - Add `base_url` field to `OpenAIProviderConfig` in `dto.rs` for custom OpenAI API URL support.
> - Update `transform_provider_dto()`... | diff --git a/src/management/dto.rs b/src/management/dto.rs
index 51d868ef..02e9375a 100644
--- a/src/management/dto.rs
+++ b/src/management/dto.rs
@@ -57,6 +57,7 @@ impl SecretObject {
pub struct OpenAIProviderConfig {
pub api_key: SecretObject,
pub organization_id: Option<String>,
+ pub base_url: Option<... | 3 | 1 | 1 | [{"id": "G0", "claim": "Whitespace-only or empty base_url values are propagated into provider params as-is, which can override the OpenAI default endpoint with an unusable value and fail at runtime; the reviewer asks to trim/validate before insertion in both the OpenAI and Azure branches.", "category": "correctness", "... | null |
tradingview__lightweight-charts__1058 | tradingview/lightweight-charts | 1,058 | defect | 23e047e298169e44900d74057967696c85b8cd4a | e72bd43d273aced13fffebe7424d33298cc11265 | Add 'color' property to MouseEventParams.seriesData for Line series | **Type of PR:** bugfix
**PR checklist:**
- [ ] Addresses an existing issue: fixes #1057
- [ ] Includes tests
- [ ] Documentation update
**Overview of change:**
Add 'color' property to MouseEventParams.seriesData for Line series
| diff --git a/src/api/get-series-data-creator.ts b/src/api/get-series-data-creator.ts
index 7f365d55477..36bd04fb0b2 100644
--- a/src/api/get-series-data-creator.ts
+++ b/src/api/get-series-data-creator.ts
@@ -1,5 +1,5 @@
import { PlotRow, PlotRowValueIndex } from '../model/plot-data';
-import { HistogramPlotRow, Serie... | 2 | 2 | 2 | [{"id": "G0", "claim": "The lineData creator should not include a color property with value undefined; instead it should only set result.color when plotRow.color !== undefined, as in get-series-plot-row-creator.ts.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1... | null |
tradingview__lightweight-charts__1167 | tradingview/lightweight-charts | 1,167 | defect | 2ba2dc789952dd7a8444cf841869c7e10aff4568 | 5326a13894978ac9f60b11aa12c69876a0ae1c1c | Conditional wheel events subs | **Type of PR:** enhancement
**PR checklist:**
- [x] Includes tests
- [ ] Documentation update
**Problem:**
The library unconditionally subscribes to wheel events but with `_options.handleScroll.*` turned off this handler is just two math operations and an if statement. But even an empty no-op wheel handler c... | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 35f676f8f31..947e6756447 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -220,6 +220,19 @@ jobs:
- store_test_results:
path: test-results/
+ interactions:
+ executor: node16-browsers-executor
+ environment:
+ ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The two functions duplicated at the top of the new test case should at least be moved into a shared utils.js file instead of duplicating the code.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "\"interaction\" should be \"i... | null |
tradingview__lightweight-charts__1174 | tradingview/lightweight-charts | 1,174 | defect | f70dae6ec0304a65748ca3f48bcbadf148f39679 | a7a712f04a82435e874a47728033d7fa6142e72b | Improve reliability of graphics tests | **Type of PR:** bugfix / enhancement
The graphics tests are flaky when run on the CI server. This PR improves the reliability of the tests such that false negatives should be greatly reduced.
Fixes #1154
**Overview of changes:**
* When a test fails and is retried, it will then run in series instead of parall... | diff --git a/package.json b/package.json
index 9026a6bf334..e252fc78c9b 100644
--- a/package.json
+++ b/package.json
@@ -58,9 +58,9 @@
"eslint-plugin-markdown": "~3.0.0",
"eslint-plugin-mdx": "~1.17.0",
"eslint-plugin-prefer-arrow": "~1.2.3",
+ "eslint-plugin-react": "~7.30.1",
"eslint-plugin-tsd... | 4 | 4 | 2 | [{"id": "G0", "claim": "The new early `await goldenScreenshotPromise` (in the previous-attempts branch) should be wrapped in a try/catch block as done below, so a failure is reported like the other awaits.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
tradingview__lightweight-charts__1226 | tradingview/lightweight-charts | 1,226 | defect | c4841049078f4774a8b980d0ed66df5fba0b216a | 5e0f5df98eea5f319bdf8afab641a7882d0f83d3 | Updating TS & other non documentation or framwork deps | **Type of PR:** Chore: update TS and some none documentation related deps
**PR checklist:**
- [x] Chore - update deps
Fixes https://github.com/tradingview/lightweight-charts/issues/1225
| diff --git a/package.json b/package.json
index 56bb6a69ebe..cd790a5eaf3 100644
--- a/package.json
+++ b/package.json
@@ -35,56 +35,56 @@
"fancy-canvas": "0.2.2"
},
"devDependencies": {
- "@rollup/plugin-node-resolve": "~13.3.0",
- "@rollup/plugin-replace": "~4.0.0",
- "@size-limit/file": "~8.0.0",
-... | 3 | 2 | 1 | [{"id": "G0", "claim": "The forced `barItem as OhlcData` casts are undesirable, and `isFulfilledData` not narrowing `barItem`'s type is the root cause that would be better fixed with more complex generic typing (e.g. function overloads), which would also fix the `lineItem` casts lower in the file.", "category": "mainta... | null |
tradingview__lightweight-charts__1591 | tradingview/lightweight-charts | 1,591 | defect | 0f7343e7934a063238c61a67ca9926248f7f1fbd | fb3bb050500efdfa96533d245177d854a0c652ff | add shouldResetTickmarkLabels | **Type of PR:** bugfix
**PR checklist:**
- [x] Addresses an existing issue: fixes #1588
- [x] Includes tests
- [ ] Documentation update
**Overview of change:**
Added the `shouldResetTickmarkLabels` method to `IHorzScaleBehavior` and e2e test with an example of how users could fix issues like #1588 using thi... | diff --git a/.size-limit.js b/.size-limit.js
index e517fb80a0c..9790acb1040 100644
--- a/.size-limit.js
+++ b/.size-limit.js
@@ -4,21 +4,21 @@ module.exports = [
{
name: 'CJS',
path: 'dist/lightweight-charts.production.cjs',
- limit: '48.17 KB',
+ limit: '48.27 KB',
},
{
name: 'ESM',
path: 'dist/lig... | 10 | 9 | 3 | [{"id": "G0", "claim": "The size limits in .size-limit.js are set too close to the actual built size and should each be increased by at least 0.01 KB so the size check does not flake due to the build timestamp.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
tradingview__lightweight-charts__1738 | tradingview/lightweight-charts | 1,738 | defect | 40c8cc5e9187c5038b084d2955c142f7ae87713c | 7ff3dadd7100e806d86451d655c7aa72014b7b93 | do full update on primitive detach | **Type of PR:** bugfix
**PR checklist:**
- [x] Addresses an existing issue: fixes #1594
**Overview of change:**
if primitive is detached chart will perform full update.
| diff --git a/src/api/series-api.ts b/src/api/series-api.ts
index 64db5e5b1d5..958834c302d 100644
--- a/src/api/series-api.ts
+++ b/src/api/series-api.ts
@@ -231,6 +231,7 @@ export class SeriesApi<
this._series.detachPrimitive(primitive as ISeriesPrimitiveBase<unknown>);
if (primitive.detached) {
primitive.det... | 2 | 2 | 2 | [{"id": "G0", "claim": "The new e2e detach test never lets the library render the plugin before detaching (attach and detach happen back to back), so the test may show no visual difference and not actually verify the fix; the reviewer asks to wait frames between the steps (e.g. return a promise using setTimeout/request... | null |
tradingview__lightweight-charts__1949 | tradingview/lightweight-charts | 1,949 | defect | 7170ead5a941e08b6215afad36c56a2bdb5f5dde | 4138ce6ea2d3bb4a4f87435f10e68d7ddc85bc3d | Bar popping feature | **Type of PR:** enhancement
**PR checklist:**
- [x] Addresses an existing issue: fixes #1518
- [x] Includes tests
- [x] Documentation update
**Overview of change:**
Add the ability to pop points from series data.
**Is there anything you'd like reviewers to focus on?**
I've added a visual test for so... | diff --git a/src/api/chart-api.ts b/src/api/chart-api.ts
index be6961b72c5..9326ff47138 100644
--- a/src/api/chart-api.ts
+++ b/src/api/chart-api.ts
@@ -235,6 +235,16 @@ export class ChartApi<HorzScaleItem> implements IChartApiBase<HorzScaleItem>, Da
this._sendUpdateToChart(this._dataLayer.updateSeriesData(series, d... | 7 | 5 | 2 | [{"id": "G0", "claim": "With multiple time series, time points were being removed while other series still used them.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The public pop method should return the original data (TData) instead of exposing th... | null |
tradingview__lightweight-charts__1995 | tradingview/lightweight-charts | 1,995 | defect | fdef142aa380b61ff05e0f55bd61367d7d1e53b9 | e021f13df31712f699f817eab60ad463986a892a | Do not snap crosshair on hiddens series indices | **Type of PR:** enhancement
**PR checklist:**
- [x] Addresses an existing issue: fixes #1994
- [x] Includes tests
- [x] Documentation update
**Overview of change:**
Added the option `CrosshairOptions.doNotSnapToHiddenSeriesIndices`
| diff --git a/src/api/options/crosshair-options-defaults.ts b/src/api/options/crosshair-options-defaults.ts
index e6c1348ae56..bcb3d82fa63 100644
--- a/src/api/options/crosshair-options-defaults.ts
+++ b/src/api/options/crosshair-options-defaults.ts
@@ -18,4 +18,5 @@ export const crosshairOptionsDefaults: CrosshairOptio... | 2 | 1 | 0 | [{"id": "G0", "claim": "`notNull` is referenced in the new snapping code in src/model/crosshair.ts but not imported; add the import statement to prevent runtime errors.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The visible series are filtered o... | null |
tradingview__lightweight-charts__386 | tradingview/lightweight-charts | 386 | defect | 5e328f4982675c78d8a7599a240a7d108cc84034 | 9af89852bade77f9262e715c9c0dd9e6a22cee0f | Added ability to customize time scale tick marks formatter | **Type of PR:** enhancement
**PR checklist:**
- [x] Addresses an existing issue: fixes #226
- [x] Includes tests
- [x] Documentation update | diff --git a/docs/constants.md b/docs/constants.md
index af8cba7ec78..a9c7f590fe5 100644
--- a/docs/constants.md
+++ b/docs/constants.md
@@ -68,3 +68,15 @@ It has the following values:
- `PriceLineSource.LastBar` - use the last bar data.
- `PriceLineSource.LastVisible` - use the last visible data of the chart viewp... | 11 | 10 | 0 | [{"id": "G0", "claim": "The TickMarkType section intro in docs/constants.md should read \"`TickMarkType` enum is used to specify a type of a tick mark on the time axis.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The TickMarkType.Time bullet ... | null |
tradingview__lightweight-charts__481 | tradingview/lightweight-charts | 481 | defect | 4d4498c16afb22775358883e21328877333630fb | 4a58dfb112b832b6a9c216e6d526d92c223ac30c | TextWidthCache refactoring & tests | **Type of PR:** <!-- bugfix, enhancement, fix typo, etc -->
**PR checklist:**
- [ ] Addresses an existing issue: fixes #
- [x] Includes tests
- [x] Documentation update (not required)
**Overview of change:**
No signature changes.
Added some tests.
Changed the cache from `Record<string, { tick: numbe... | diff --git a/src/model/text-width-cache.ts b/src/model/text-width-cache.ts
index b663f182590..c8a6724dc23 100644
--- a/src/model/text-width-cache.ts
+++ b/src/model/text-width-cache.ts
@@ -2,51 +2,45 @@ const defaultReplacementRe = /[2-9]/g;
export class TextWidthCache {
private readonly _maxSize: number;
- privat... | 5 | 4 | 0 | [{"id": "G0", "claim": "Replace the `return this._cache[cacheString] = width;` assignment-expression idiom with a separate assignment statement followed by `return width;`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add an explanatory commen... | null |
tradingview__lightweight-charts__493 | tradingview/lightweight-charts | 493 | defect | 96f10d7b20e9f956ab0aadf993f88f827099e6c8 | 5d51cb74f7ad9ebc594fec66c898d5691a877e86 | Added support for transparent color name | **Type of PR:** bugfix
**PR checklist:**
- [x] Addresses an existing issue: fixes #491
- [x] Includes tests
- [ ] Documentation update
| diff --git a/src/helpers/color.ts b/src/helpers/color.ts
index 5517ed21b5a..cf91d12446c 100644
--- a/src/helpers/color.ts
+++ b/src/helpers/color.ts
@@ -5,30 +5,23 @@ import { isNaN } from './strict-type-checks';
* Red component of the RGB color value
* The valid values are integers in range [0, 255]
*/
-export t... | 4 | 4 | 0 | [{"id": "G0", "claim": "parseRgbFromColor should be renamed to a clearer name (suggested parseRgbString/parseRgb/stringToRgb/colorStringToRgb).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 'text' field of ContrastColors should be named 'fo... | null |
tradingview__lightweight-charts__607 | tradingview/lightweight-charts | 607 | defect | 405276e2b3e21e0e7af70093c8fb18d0841ab3c6 | 643e6e5bd4130c5f32324cfbcef8c8e86ce93675 | Updated scales design | **Type of PR:** enhancement
**PR checklist:**
- [x] Addresses an existing issue: fixes #606
- [ ] Includes tests
- [ ] Documentation update
**Overview of change:**
Changed scales look & feel according to the new design | diff --git a/.circleci/config.yml b/.circleci/config.yml
index b3e598fca01..6440dcbcdfc 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -74,7 +74,10 @@ commands:
echo 'export TESTS_REPORT_FILE="test-results/graphics/results.xml"' >> $BASH_ENV
echo 'export DEVICE_PIXEL_RATIO=<< ... | 5 | 5 | 4 | [{"id": "G0", "claim": "The fontSizeToPixels helper should be removed because it does wrong calculations.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The time axis text drawing should take yMidCorrection into account for constant text, as in rend... | null |
tradingview__lightweight-charts__755 | tradingview/lightweight-charts | 755 | defect | cb973d2b460aa187b0b8b5bc8bc327ee072796e5 | 73896bcd481d265506de9aed3bfd6382a97febd5 | Fix #752 Series data still in memory after using setdata | **Type of PR:** Bugfix
**PR checklist:**
- [x] Addresses an existing issue: fixes #752
- [x] Includes tests
- [ ] Documentation update
**Overview of change:**
Currently when a series is remove (i.e. it is updated with empty data `[]`) the library does not properly handle removing that data.
Internally... | diff --git a/.gitignore b/.gitignore
index 8795b2a3287..5b7d1a4ac94 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,3 +26,6 @@ debug.html
# graphics tests out data
/tests/e2e/graphics/.gendata/
+
+# OS X .DS_Store files
+.DS_Store
\ No newline at end of file
diff --git a/src/api/data-layer.ts b/src/api/data-layer.t... | 4 | 4 | 2 | [{"id": "G0", "claim": "The gh#752 tests share one DataLayer and call setSeriesData inside separate `it` blocks, so the results depend on execution order; the reviewer asks to merge the `it`s into one or make them independent.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"... | null |
tradingview__lightweight-charts__825 | tradingview/lightweight-charts | 825 | defect | fadbb32d8669b1b071d76e9362438eafea66b5e3 | 7a7f9403bd8c772b9311b1ef2c7783f0ba18cee8 | Kinetic scroll animation | **Type of PR:** enhancement
**PR checklist:**
- [x] Addresses an existing issue: fixes #832
- [x] Includes tests
- [x] Documentation update
**Overview of change:**

| diff --git a/.size-limit.js b/.size-limit.js
index 920067a5dd8..4e169d78bf7 100644
--- a/.size-limit.js
+++ b/.size-limit.js
@@ -4,11 +4,11 @@ module.exports = [
{
name: 'ESM',
path: 'dist/lightweight-charts.esm.production.js',
- limit: '40.5 KB',
+ limit: '41.5 KB',
},
{
name: 'Standalone',
path: '... | 2 | 2 | 1 | [{"id": "G0", "claim": "Use performance.now() instead of Date.now() for the animation timing to avoid issues when the system date changes during the work.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Declare StartScrollPosition as an interface ext... | null |
tradingview__lightweight-charts__828 | tradingview/lightweight-charts | 828 | defect | fadbb32d8669b1b071d76e9362438eafea66b5e3 | 92201435d626fa6891c8c24f04337299fa7cefda | Gradient background | **Type of PR:** enhancement
**PR checklist:**
- [x] Addresses an existing issue: fixes #831
- [x] Includes tests
- [x] Documentation update
**Overview of change:**

| diff --git a/.size-limit.js b/.size-limit.js
index 920067a5dd8..3611db6c0f0 100644
--- a/.size-limit.js
+++ b/.size-limit.js
@@ -4,11 +4,11 @@ module.exports = [
{
name: 'ESM',
path: 'dist/lightweight-charts.esm.production.js',
- limit: '40.5 KB',
+ limit: '41 KB',
},
{
name: 'Standalone',
path: 'di... | 8 | 4 | 2 | [{"id": "G0", "claim": "The name ColorType is unfortunate and the enum should rather be called FillType or BackgroundType.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The boolean parameter of _getBackgroundColor reads strangely and should be replaced wi... | null |
tradingview__lightweight-charts__879 | tradingview/lightweight-charts | 879 | defect | 6262b19fb9db95ff00bffb2266ed96a5626f3895 | 0bfcfdc8818d90252713f60e164eccb34a7b7381 | Use lowerbound in TimeScale timeToIndex search | **Type of PR:** enhancement
**PR checklist:**
- [x] Addresses an existing issue: fixes #767
- [x] Includes tests
- [ ] Documentation update
**Overview of change:**
Use the existing lowerbound algorithm to reduce the amount of work done in `_recalculateMarkers`.
Profiling on my machine shows a reductio... | diff --git a/src/api/chart-api.ts b/src/api/chart-api.ts
index 24b190a96a3..afd40f465a2 100644
--- a/src/api/chart-api.ts
+++ b/src/api/chart-api.ts
@@ -343,7 +343,7 @@ export class ChartApi implements IChartApi, DataUpdatesConsumer<SeriesType> {
const model = this._chartWidget.model();
model.updateTimeScale(up... | 2 | 1 | 1 | [{"id": "G0", "claim": "Passing firstChangedPointIndex to _recalculateMarkers cannot work in the common case, because firstChangedPointIndex refers to the first change on the time scale while a data update does not necessarily change the time scale, so markers can be dropped in that scenario; the author asks for a fix ... | null |
tradingview__lightweight-charts__972 | tradingview/lightweight-charts | 972 | defect | f40fef05571bb5a4e7744e9d127a7c4ead3a37e0 | 094a8cefda3ebd59cabde7ac5d33a0a9a44b9037 | feat: add option to activate scroll on touch end event | **Type of PR:** enhancement
**PR checklist:**
- [x] Addresses an existing issue: fixes #106, fixes #830, fixes #657
- [ ] Includes tests
- [x] Documentation update // in type
**Overview of change:**
- Update MouseEventHandler, separating the mouse and touch events (related to #106)
- Add _quick tracking ... | diff --git a/.size-limit.js b/.size-limit.js
index 58b40052ce7..ccf48ebfb54 100644
--- a/.size-limit.js
+++ b/.size-limit.js
@@ -4,11 +4,11 @@ module.exports = [
{
name: 'ESM',
path: 'dist/lightweight-charts.esm.production.js',
- limit: '44.1 KB',
+ limit: '44.50 KB',
},
{
name: 'Standalone',
path: ... | 10 | 10 | 4 | [{"id": "G0", "claim": "Now that detection is event-based, the mobileTouch browser-feature detection looks unneeded and misleadingly named — its remaining uses (PaneWidget.mouseEnterEvent and last-touch-or-mouse-event.ts) should be removed and the variable removed or renamed to mean whether the device supports touch ev... | null |
traefik__traefik__10645 | traefik/traefik | 10,645 | defect | 05de0670ea9fe4c66e6abeb8868acfcff3b9b4b7 | 0baef72736fca1ab6b50ec66a7a983b5100745b1 | Allow discovering non-running Docker containers | <!--
PLEASE READ THIS MESSAGE.
Documentation fixes or enhancements:
- for Traefik v2: use branch v2.11
- for Traefik v3: use branch v3.0
Bug fixes:
- for Traefik v2: use branch v2.11
- for Traefik v3: use branch v3.0
Enhancements:
- for Traefik v2: we only accept bug fixes
- for Traefik v3: use branch v... | diff --git a/docs/content/reference/routing-configuration/other-providers/docker.md b/docs/content/reference/routing-configuration/other-providers/docker.md
index a6773b190f1..cef1066f0e2 100644
--- a/docs/content/reference/routing-configuration/other-providers/docker.md
+++ b/docs/content/reference/routing-configurati... | 5 | 3 | 2 | [{"id": "G0", "claim": "Exposing stopped containers through allowEmptyServices risks conflicting exposed routers being dropped and a breaking change; the behaviour should instead be controlled by a separate opt-in per-container label.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduce... | null |
traefik__traefik__10917 | traefik/traefik | 10,917 | defect | 87db3300d33fd5b74d793cf81d9dbcdba2092837 | 1cd15f8066d400d6c7d639b3541200965ca34839 | Allow setting service.name for OTLP metrics | <!--
PLEASE READ THIS MESSAGE.
Documentation fixes or enhancements:
- for Traefik v2: use branch v2.11
- for Traefik v3: use branch v3.1
Bug fixes:
- for Traefik v2: use branch v2.11
- for Traefik v3: use branch v3.1
Enhancements:
- for Traefik v2: we only accept bug fixes
- for Traefik v3: use branch m... | diff --git a/.golangci.yml b/.golangci.yml
index 09e70a78cf1..7ca0c93a6df 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -280,3 +280,7 @@ issues:
- path: pkg/cli/loader_file.go
linters:
- goconst
+ - path: pkg/types/metrics.go
+ linters:
+ - goconst
+
diff --git a/docs/content/ref... | 4 | 2 | 2 | [{"id": "G0", "claim": "The pull request should add documentation for the new serviceName option.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The documentation should also add a note mentioning the OTEL_SERVICE_NAME env variable and its behavio... | null |
traefik__traefik__10985 | traefik/traefik | 10,985 | defect | 8d9ff0c441c291ea8f0ee31be6d0033cb972b271 | e28a77df2d4b7370046c24af94fb8dc26a5f4b40 | Allow configuring rule syntax with Kubernetes Ingress annotation | <!--
PLEASE READ THIS MESSAGE.
Documentation fixes or enhancements:
- for Traefik v2: use branch v2.11
- for Traefik v3: use branch v3.1
Bug fixes:
- for Traefik v2: use branch v2.11
- for Traefik v3: use branch v3.1
Enhancements:
- for Traefik v2: we only accept bug fixes
- for Traefik v3: use branch m... | diff --git a/docs/content/migration/v2-to-v3-details.md b/docs/content/migration/v2-to-v3-details.md
index e40ab39f32d..f42dc5d7745 100644
--- a/docs/content/migration/v2-to-v3-details.md
+++ b/docs/content/migration/v2-to-v3-details.md
@@ -541,6 +541,19 @@ it is now unsupported and would prevent Traefik to start.
A... | 2 | 1 | 0 | [{"id": "G0", "claim": "The wording of the new 'Kubernetes Ingress Path Matching' remediation section should be reworded as suggested (e.g. 'Two levels of remediation are possible', 'This can done globally for all routers', 'Adapt the path regex to be compatible with the Go regex syntax') with the annotation names turn... | null |
traefik__traefik__11193 | traefik/traefik | 11,193 | defect | 6e1f5dc0713bd74ffb599b4fc0213bc1cfbd5f2e | d176b88033f7df5332638595dc5cda10ce6502f1 | Add an option to preserve server path | ### What does this PR do?
This PR adds an option to allow keeping the path for the upstream server.
### Motivation
Fixes #10487
### More
- [x] Added/updated tests
- [x] Added/updated documentation
### Additional Notes
<!-- Anything else we should know when reviewing? -->
| diff --git a/docs/content/reference/dynamic-configuration/docker-labels.yml b/docs/content/reference/dynamic-configuration/docker-labels.yml
index 77fcdef872d..31664d1a6c9 100644
--- a/docs/content/reference/dynamic-configuration/docker-labels.yml
+++ b/docs/content/reference/dynamic-configuration/docker-labels.yml
@@ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new docs sentence for `preservePath` should be worded \"The `preservePath` option allows to preserve the URL path.\" instead of \"allow to preserve url path\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
traefik__traefik__11203 | traefik/traefik | 11,203 | defect | 6c3b099c25661e9517c9d0d2e3a5aa37dd380d1a | cc5f4fd978ac5c7d07b8c151e1dc48ffb2f1a8f7 | Make the behavior of prefix matching in Ingress consistent with Kubernetes doc | ### What does this PR do?
Before this PR, a Ingress prefix rule `/aaa` will match `/aaabbb`. Now `/aaa` no longer matches `/aaabbb` to keep the Ingress behavior consistent with [Kubernetes Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/#examples) documentation.
### Motivation
Please s... | diff --git a/docs/content/providers/kubernetes-ingress.md b/docs/content/providers/kubernetes-ingress.md
index 08c77b88866..9347740b496 100644
--- a/docs/content/providers/kubernetes-ingress.md
+++ b/docs/content/providers/kubernetes-ingress.md
@@ -529,6 +529,29 @@ providers:
--providers.kubernetesingress.nativeLBByDe... | 10 | 10 | 2 | [{"id": "G0", "claim": "Making the new element-wise prefix matching the default is a breaking change for current v3, so the PR should provide this behavior in an opt-in manner via a Kubernetes Ingress provider option.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",... | null |
traefik__traefik__11867 | traefik/traefik | 11,867 | defect | 9862cd67808ea88bf5649fd7cc942732a0f06a53 | 102a90534001188afaa2031bcd2ae99a7f6a909b | Provide Log Body in OTEL access Log | ### What does this PR do?
This PR adds the content of the log in the access log body when running OTLP logger provider.
### Motivation
Fix #11749
### More
- [X] Added/updated tests
- [ ] Added/updated documentation
### Additional Notes
Hi there, it's been a while !
Its nice to see the great work that you are all... | diff --git a/pkg/middlewares/accesslog/logger.go b/pkg/middlewares/accesslog/logger.go
index 6ec8ea4c91f..7853d9ffd8d 100644
--- a/pkg/middlewares/accesslog/logger.go
+++ b/pkg/middlewares/accesslog/logger.go
@@ -352,37 +352,64 @@ func (h *Handler) logTheRoundTrip(ctx context.Context, logDataTable *LogData) {
totalDu... | 3 | 1 | 1 | [{"id": "G0", "claim": "The loop variable `test` is captured by the parallel subtest closure, which can cause races or incorrect test data; introduce a local copy (e.g., `tc := test`) inside the loop before `t.Run`.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1"... | null |
traefik__traefik__11939 | traefik/traefik | 11,939 | defect | 5c94bbf122408399fa9e9da3c8abb1b7fa7300c2 | 7b132298860e292ecbaf1c3771c04534c816db8d | Support syscall | <!--
PLEASE READ THIS MESSAGE.
Enhancements:
- for Traefik v2: we only accept bug fixes
- for Traefik v3: use branch master
HOW TO WRITE A GOOD PULL REQUEST? https://doc.traefik.io/traefik/contributing/submitting-pull-requests/
-->
### What does this PR do?
Add support for syscall with the new unsafe se... | diff --git a/docs/content/reference/static-configuration/cli-ref.md b/docs/content/reference/static-configuration/cli-ref.md
index cfc37793505..89a6e34afde 100644
--- a/docs/content/reference/static-configuration/cli-ref.md
+++ b/docs/content/reference/static-configuration/cli-ref.md
@@ -358,7 +358,7 @@ Environment var... | 3 | 2 | 2 | [{"id": "G0", "claim": "Tests should be added covering the pull request's new unsafe/syscall symbol-loading behavior in newInterpreter.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The security implications of enabling syscall access in plugins should... | null |
traefik__traefik__12050 | traefik/traefik | 12,050 | defect | 02443545e743f00821098def5f7e0f30d24e3e21 | c6af96eb9bc591efbc9b82a81115d70392934d66 | Implement HTTP2 HPACK table size options | <!--
PLEASE READ THIS MESSAGE.
Documentation:
- for Traefik v2: use branch v2.11 (fixes only)
- for Traefik v3: use branch v3.5
Bug:
- for Traefik v2: use branch v2.11 (security fixes only)
- for Traefik v3: use branch v3.5
Enhancements:
- use branch master
HOW TO WRITE A GOOD PULL REQUEST? https://do... | diff --git a/docs/content/reference/install-configuration/entrypoints.md b/docs/content/reference/install-configuration/entrypoints.md
index 7202ee8ef20..64cca5b950f 100644
--- a/docs/content/reference/install-configuration/entrypoints.md
+++ b/docs/content/reference/install-configuration/entrypoints.md
@@ -100,6 +100,... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request's HTTP/2 header table size configuration, notably the encoder side, is untested, and a simpler unit test should be added that verifies the configuration is correctly passed to Go's HTTP/2 server.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
traefik__traefik__12787 | traefik/traefik | 12,787 | defect | bb7bb492267b2bdba53ae82b3c19a5758e5d4eda | 322d06e19d8a343dcad5269c9c0659909feeac0d | Support fragmented TLS client hello | <!--
PLEASE READ THIS MESSAGE.
Documentation:
- for Traefik v2: use branch v2.11 (fixes only)
- for Traefik v3: use branch v3.6
Bug:
- for Traefik v2: use branch v2.11 (security fixes only)
- for Traefik v3: use branch v3.6
Enhancements:
- use branch master
HOW TO WRITE A GOOD PULL REQUEST? https://do... | diff --git a/pkg/server/router/tcp/router.go b/pkg/server/router/tcp/router.go
index 8b98c853d10..131670b4a87 100644
--- a/pkg/server/router/tcp/router.go
+++ b/pkg/server/router/tcp/router.go
@@ -19,15 +19,8 @@ import (
"github.com/traefik/traefik/v2/pkg/tcp"
)
-const (
- defaultBufSize = 4096
- // Per RFC 8446 S... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment above `return nil, errClientHelloRead` explaining that this error prevents unnecessary additional steps in the TLS ClientHello message processing.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
traefik__traefik__12788 | traefik/traefik | 12,788 | defect | bb7bb492267b2bdba53ae82b3c19a5758e5d4eda | caa1facee59b657a0b2c0ae51e046eb6017ab75e | Add maxResponseBodySize configuration on HTTP provider | ### What does this PR do?
Add an option to set the maximum response body size from the configuration endpoint for HTTP provider.
### Motivation
To avoid possible performance issue.
### More
- [x] Added/updated tests
- [x] Added/updated documentation
| diff --git a/docs/content/migration/v2.md b/docs/content/migration/v2.md
index 8321f1d04cd..6dd45615c4b 100644
--- a/docs/content/migration/v2.md
+++ b/docs/content/migration/v2.md
@@ -775,3 +775,13 @@ However, it is strongly recommended to set this option to a suitable value to av
such as DoS attacks and memory exhau... | 3 | 3 | 2 | [{"id": "G0", "claim": "The error returned when reading the response body fails should be worded \"reading response body\" instead of \"read response body\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "TestProvider_Provide should build the Pr... | null |
traefik__traefik__12977 | traefik/traefik | 12,977 | defect | 2b9ffc426122b89bf38139cebfd7dfb8d5007634 | 2d4335330e99766d5f7722fd85285b6e33617c1e | Avoid 302 redirect when rewrite-target value is not an absolute URL for ingress-nginx provider | ### What does this PR do?
When the rewrite-target is configured as an absolute URL, Traefik issues a 302 redirect. However, when using a capture group replacement (e.g. $1), a user-controlled path segment containing an absolute URL could also trigger an open redirect.
This fix ensures a 302 redirect is only issue... | diff --git a/pkg/middlewares/ingressnginx/rewritetarget/rewrite_target.go b/pkg/middlewares/ingressnginx/rewritetarget/rewrite_target.go
index 8e8c4944b80..1132a6a27bf 100644
--- a/pkg/middlewares/ingressnginx/rewritetarget/rewrite_target.go
+++ b/pkg/middlewares/ingressnginx/rewritetarget/rewrite_target.go
@@ -28,6 +2... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment on the absoluteURLRedirect field should have a single space after the field name instead of a double space (as given in the review's suggestion block).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
trailheadapps__dreamhouse-lwc__163 | trailheadapps/dreamhouse-lwc | 163 | defect | 93b8a76dbf2ddab0e0aadd8827cf59477d517acd | 3450a337e4e509d4e507de594959df858c388cfa | Tests for Paginator | ### What does this PR do?
Adds tests for the paginator component
## The PR fulfills these requirements:
[X ] Tests for the proposed changes have been added/updated.
[ X] Code linting and formatting was performed.
### Functionality Before
NA
### Functionality After
NA
| diff --git a/force-app/main/default/lwc/paginator/__tests__/paginator.test.js b/force-app/main/default/lwc/paginator/__tests__/paginator.test.js
new file mode 100644
index 000000000..3ce519565
--- /dev/null
+++ b/force-app/main/default/lwc/paginator/__tests__/paginator.test.js
@@ -0,0 +1,77 @@
+import { createElement }... | 5 | 4 | 1 | [{"id": "G0", "claim": "The test that sends both \"next\" and \"previous\" events in one test is not a unit test; split it into two tests.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The rendering test covers both default rendering with zero items an... | null |
trailheadapps__dreamhouse-lwc__165 | trailheadapps/dreamhouse-lwc | 165 | defect | 93b8a76dbf2ddab0e0aadd8827cf59477d517acd | 17e59d8c824ae1d2b55132568bf82a7dc5d7afec | Tests for Broker Card | ### What does this PR do?
Adds Tests for Broker Card Component
[ X] Tests for the proposed changes have been added/updated.
[ X] Code linting and formatting was performed.
### Functionality Before
NA
### Functionality After
NA
| diff --git a/force-app/main/default/lwc/.eslintrc.json b/force-app/main/default/lwc/.eslintrc.json
index 4c832a7a5..b3247135f 100644
--- a/force-app/main/default/lwc/.eslintrc.json
+++ b/force-app/main/default/lwc/.eslintrc.json
@@ -1,3 +1,11 @@
{
- "extends": ["@salesforce/eslint-config-lwc/recommended"]
+ "ext... | 3 | 3 | 0 | [{"id": "G0", "claim": "The hand-rolled uiRecordApi jest mock should be replaced with the official stub from @salesforce/sfdx-lwc-jest.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test need not assert the objectApiName attribute, since it is stat... | null |
trailheadapps__dreamhouse-lwc__217 | trailheadapps/dreamhouse-lwc | 217 | defect | 51b739bcde49a6da023cbd51b4422b28adc40618 | 61387eb201ffd6b6733a17db0382a6a036b6eb6f | Add some new LWC tests | ### What does this PR do?
Add some LWC tests that were missing
### What issues does this PR fix or reference?
#<Insert GitHub Issue>
## The PR fulfills these requirements:
[X] Tests for the proposed changes have been added/updated.
[X] Code linting and formatting was performed.
### Functionality Bef... | diff --git a/force-app/main/default/lwc/propertyCarousel/__tests__/data/getPictures.json b/force-app/main/default/lwc/propertyCarousel/__tests__/data/getPictures.json
new file mode 100644
index 000000000..9560d653c
--- /dev/null
+++ b/force-app/main/default/lwc/propertyCarousel/__tests__/data/getPictures.json
@@ -0,0 +... | 1 | 1 | 0 | [{"id": "G0", "claim": "The carousel test should assert against mockGetPictures.length instead of hardcoding the expected image count of 2.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
trailheadapps__dreamhouse-lwc__409 | trailheadapps/dreamhouse-lwc | 409 | defect | 7da3bf7f31a7976aba7649c44237192ad8971250 | 84a8a225df65f9111542a03984c66048ec905a0b | Add location / distance to property component | ### What does this PR do?
Adds a component that shows the current location, got from the browser or [the device](https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_lightning_locationservice), and shows your distance to the property
### What issues does this PR fix or referen... | diff --git a/force-app/main/default/flexipages/Property_Record_Page.flexipage-meta.xml b/force-app/main/default/flexipages/Property_Record_Page.flexipage-meta.xml
index 6ec10f0b2..04d93daca 100644
--- a/force-app/main/default/flexipages/Property_Record_Page.flexipage-meta.xml
+++ b/force-app/main/default/flexipages/Pro... | 5 | 5 | 0 | [{"id": "G0", "claim": "Rewrite the promise-chain location lookup in getLocationFromMobileDevice to use async/await instead of .then()/.catch().", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The explicit calculateDistance() calls in getLocation... | null |
trailheadapps__dreamhouse-lwc__421 | trailheadapps/dreamhouse-lwc | 421 | defect | ee6752ba3346eccb0dc7181e3dfb385a4092b92d | 9e9c68f706e8faa287ee53fe46cba0f5200f8527 | Add QR code scanner example to dreamhouse | ### What does this PR do?
Adds an example of the mobile Barcode (QR Code) Scanner functionality
## The PR fulfills these requirements:
[x] Tests for the proposed changes have been added/updated.
[x] Code linting and formatting was performed.
### Functionality Before
No QR code scanning available
### Func... | diff --git a/force-app/main/default/aura/auraPropertyListMap/auraPropertyListMap.cmp-meta.xml b/force-app/main/default/aura/auraPropertyListMap/auraPropertyListMap.cmp-meta.xml
index 7dc99628d..03740d3b7 100644
--- a/force-app/main/default/aura/auraPropertyListMap/auraPropertyListMap.cmp-meta.xml
+++ b/force-app/main/d... | 12 | 11 | 2 | [{"id": "G0", "claim": "Revert the changes to the SVG in noDataIllustration.html, which look like a search-and-replace accident that corrupted its path data (e.g. '55.0.661702805' inside a coordinate).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "... | null |
trailheadapps__dreamhouse-lwc__449 | trailheadapps/dreamhouse-lwc | 449 | defect | 14fc2e769629c82b7fa5e0736229ed82ab036eda | f987db93687ee7fe75d768366b3115e6c171c3bf | Make propertyTile component reactive to formFactor | ### What does this PR do?
Makes propertyTile component reactive to formFactor
### What issues does this PR fix or reference?
#<Insert GitHub Issue>
## The PR fulfills these requirements:
[X] Tests for the proposed changes have been added/updated.
[X] Code linting and formatting was performed.
### Funct... | diff --git a/.husky/pre-commit b/.husky/pre-commit
index feac116af..ec3e33e4a 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
-npm run precommit
\ No newline at end of file
+#npm run precommit
\ No newline at end of file
diff --git a/force-app/main/def... | 3 | 3 | 1 | [{"id": "G0", "claim": "Restore the pre-commit hook that the pull request commented out in .husky/pre-commit.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the new test file propertyTile2.test.js to something more meaningful, e.g. propertyTi... | null |
trailheadapps__dreamhouse-lwc__489 | trailheadapps/dreamhouse-lwc | 489 | defect | 5b54286a45d8803a6d458ab9a62bef8025178fa6 | 76ecbfd2246d6a7f0456551e486111efd3553359 | Lighning-input compression for mobile | ### What does this PR do?
Fix missing LWC if/else directives
Adds example of using the new mediaUtils library to compress and resize images (especially suitable for mobile)
### What issues does this PR fix or reference?
#<Insert GitHub Issue>
## The PR fulfills these requirements:
[x] Tests for the propos... | diff --git a/force-app/main/default/classes/FileUtilities.cls b/force-app/main/default/classes/FileUtilities.cls
new file mode 100644
index 000000000..54c1c6510
--- /dev/null
+++ b/force-app/main/default/classes/FileUtilities.cls
@@ -0,0 +1,33 @@
+public with sharing class FileUtilities {
+ @AuraEnabled
+ public ... | 4 | 3 | 0 | [{"id": "G0", "claim": "The ContentVersion and ContentDocumentLink inserts in FileUtilities.createFile should use `insert as user` so the DML runs with the user's permissions instead of in system mode.", "category": "security", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The n... | null |
trailofbits__cargo-unmaintained__551 | trailofbits/cargo-unmaintained | 551 | defect | 917ca31b2b2bea13660c9a5a1b30e4e4a05a04bb | d7a383d69907da4bea344521566cd5f47589fa1c | Cache-related wants (Added --purge) | Add a new --purge command-line option to remove the cache directory at $HOME/.cache/cargo-unmaintained/v2. This enables users to easily clean up the on-disk cache without having to manually find and delete the directory.
The option is only available on non-Windows platforms with the on-disk-cache feature enabled, si... | diff --git a/README.md b/README.md
index 768f9d6c..d2634414 100644
--- a/README.md
+++ b/README.md
@@ -65,10 +65,11 @@ Options:
--max-age <DAYS> Age in days that a repository's last commit must not exceed for the
repository to be considered current; 0 effectively disables this check,
... | 8 | 8 | 4 | [{"id": "G0", "claim": "The new purge code should be moved into the on_disk_cache module and `remove_dir_all` imported unqualified so the `non_local_effect_before_error_return` and `inconsistent_qualification` lints stop triggering and CI passes.", "category": "design", "verdict": "supported", "priority": "P1", "scope"... | null |
trailofbits__cargo-unmaintained__565 | trailofbits/cargo-unmaintained | 565 | defect | 0110ed0b72ca7cc18497a758fda1a5d13ef94347 | 7d5271e8af1ef38274d3f233a5302de6c040bb13 | Fix --purge to remove root cache directory instead of version directory | ## Description
This PR addresses issue #561 where the `--purge` flag was only removing the version directory (`$HOME/.cache/cargo-unmaintained/v2`) instead of the entire cache directory (`$HOME/.cache/cargo-unmaintained`).
## Changes
- Refactored the `CACHE_DIRECTORY` constant to point to the base cache directory ... | diff --git a/src/on_disk_cache.rs b/src/on_disk_cache.rs
index cde02c12..fc1d2ba6 100644
--- a/src/on_disk_cache.rs
+++ b/src/on_disk_cache.rs
@@ -68,10 +68,14 @@ thread_local! {
static CACHE_DIRECTORY: LazyLock<PathBuf> = LazyLock::new(|| {
let base_directories = xdg::BaseDirectories::new().unwrap();
base_d... | 2 | 2 | 0 | [{"id": "G0", "claim": "The reviewer believes the new LazyLock VERSION_DIR with create_dir_all in base_dir is unnecessary and should be replaced by simply returning CACHE_DIRECTORY joined with VERSION (as the maintainer suggests, with base_dir's return type adjusted).", "category": "design", "verdict": "supported", "pr... | null |
trailofbits__manticore__1024 | trailofbits/manticore | 1,024 | defect | 0d843457a9d00127607d5adb06395a280b643662 | f926aa93baf342e172b4d9d1eda1aa472d969a42 | fix sys_write logger output | - write/writev/read bugfixes
- add typing annotations
- resolves #1020
- resolves #940
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/trailofbits/manticore/1024)
<!-- Reviewable:end -->... | diff --git a/manticore/platforms/linux.py b/manticore/platforms/linux.py
index 18cb83647..cba649343 100644
--- a/manticore/platforms/linux.py
+++ b/manticore/platforms/linux.py
@@ -1292,12 +1292,12 @@ def sys_write(self, fd, buf, count):
data = self._transform_write_data(data)
write_fd.write(d... | 6 | 4 | 0 | [{"id": "G0", "claim": "The sys_write WRITE log line should use plain line.decode() (utf-8) instead of latin-1: plain decode seems to work fine and the reviewer knows of no reason not to use utf-8.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new b''... | null |
trailofbits__manticore__1054 | trailofbits/manticore | 1,054 | defect | b700239bb704050336bbf2d313da9125c6048e19 | 9c7cc0b4b1e7ec9caad81e2578e283e9ae274f7a | Make account address provider more yellow |
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/trailofbits/manticore/1054)
<!-- Reviewable:end -->
| diff --git a/manticore/core/smtlib/visitors.py b/manticore/core/smtlib/visitors.py
index 1676722d3..c26e23643 100644
--- a/manticore/core/smtlib/visitors.py
+++ b/manticore/core/smtlib/visitors.py
@@ -714,10 +714,6 @@ def replace(expression, bindings):
visitor = Replace(bindings)
visitor.visit(expression, use... | 14 | 13 | 1 | [{"id": "G0", "claim": "The nonce defaulting in `create_account` could be simplified to the one-liner `nonce = 1 if code else 0`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The first line of the `create_contract` docstring is indented one le... | null |
trailofbits__manticore__1077 | trailofbits/manticore | 1,077 | defect | 8142472c50617c130151ce701bb67a7f98972708 | b2ebb74c99fa57994d411d0bae72bd46aaf3e8bd | eth: add ether leak detector | this adds a detector ether leaks, and slightly refactors the detector tests
- make the LoopDepthLimiter plugin configurable (change the default to 5! the some for reason etherleak_pos_argument1.sol test needs 5, not 2 to work...)
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/re... | diff --git a/manticore/ethereum.py b/manticore/ethereum.py
index 2692b9304..5e45e604a 100644
--- a/manticore/ethereum.py
+++ b/manticore/ethereum.py
@@ -132,6 +132,10 @@ def will_open_transaction_callback(self, state, tx):
class LoopDepthLimiter(Plugin):
''' This just abort explorations too deep '''
+ def __... | 2 | 2 | 2 | [{"id": "G0", "claim": "Deciding 'user controlled' solely by issymbolic(dest_address) can report a finding when the symbolic destination is effectively concrete (constrained to one value, as in require(x == concrete)), so the reviewer proposes checking that the value has at least 2 solutions instead.", "category": "cor... | null |
trailofbits__manticore__1082 | trailofbits/manticore | 1,082 | defect | 81296f932a3f56111b2976f9a51030853100928e | 3c764a0e8cbaa6feba47b7aa2d2f356e15489d6d | eth: new/alternative reentrancy detector | adds a new alternative reentrancy detector based on symbolic external call detection. changes the cli to use it by default, as it should have less false negatives.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https:/... | diff --git a/manticore/ethereum.py b/manticore/ethereum.py
index 95b1bb864..ddee8ecfa 100644
--- a/manticore/ethereum.py
+++ b/manticore/ethereum.py
@@ -288,6 +288,47 @@ def will_evm_execute_instruction_callback(self, state, instruction, arguments):
self.add_finding_here(state, "INVALID instruction")
... | 8 | 3 | 1 | [{"id": "G0", "claim": "Save the gas constraint alongside the call pc (append ((pc, gas>2300))) and import that gas condition in did_evm_write_storage_callback so the reported finding carries it.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The de... | null |
trailofbits__manticore__1087 | trailofbits/manticore | 1,087 | defect | 1d806ba51fe811bae3231e6a05cb69d5a38c1dea | 2196550b4df49625a676480529a11973fbff48ee | Add detector for plain external call | Modify the etherleak detector also add findings for general user controlled external call situations.
fixes #1056
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/trailofbits/manticor... | diff --git a/manticore/__main__.py b/manticore/__main__.py
index a6aa273c9..a414aabf4 100644
--- a/manticore/__main__.py
+++ b/manticore/__main__.py
@@ -100,8 +100,8 @@ def positive(value):
parser.add_argument('--detect-selfdestruct', action='store_true',
help='Enable detection of reachabl... | 3 | 2 | 2 | [{"id": "G0", "claim": "The detector should use the did_execute callback so it can check for TXERROR and avoid flagging failed transactions (or otherwise add checks such as world.get_balance(sender) >= sent_value and a gas minimum before reporting).", "category": "correctness", "verdict": "opposed", "priority": "P1", "... | null |
trailofbits__manticore__1108 | trailofbits/manticore | 1,108 | defect | 1907968c1fc78218ec612eeef76197d70e8b3a26 | a286b49ae784ddb20216e6df0170b11b1b55cc55 | Detect the odd delegatecall instruction |
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/trailofbits/manticore/1108)
<!-- Reviewable:end -->
| diff --git a/manticore/__main__.py b/manticore/__main__.py
index f666a97ac..61c097c72 100644
--- a/manticore/__main__.py
+++ b/manticore/__main__.py
@@ -95,7 +95,10 @@ def positive(value):
help='Enable detection of reentrancy bug (Ethereum only)')
parser.add_argument('--detect-unused-ret... | 3 | 3 | 0 | [{"id": "G0", "claim": "Fix the misspelling 'Dellegatecall' to 'Delegatecall' in the detector's finding messages and the matching test expectations.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the unused increase_recursion import in mant... | null |
trailofbits__manticore__1120 | trailofbits/manticore | 1,120 | defect | 41bad1eb5b598cfe2da648d58d165acfb15f8489 | 102bfe8e3fb80123f076cad1006b8c1bdff4af99 | Implements some missing X86 XMM instructions | I hope that fixes #973
It's been running for a while and I do not get the crash anymore (so the bug was probably in unicorn)
+ one commit to raise the verbosity of unimplemented instructions...
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absm... | diff --git a/manticore/core/cpu/abstractcpu.py b/manticore/core/cpu/abstractcpu.py
index fd8a92529..3f1ca5ec5 100644
--- a/manticore/core/cpu/abstractcpu.py
+++ b/manticore/core/cpu/abstractcpu.py
@@ -842,8 +842,8 @@ def execute(self):
else:
text_bytes = ' '.join('%02x' % x for x in insn... | 7 | 6 | 1 | [{"id": "G0", "claim": "The newly added XMM instruction implementations should come with tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Assigning instruction bytes one mem[addr] = byte line at a time is hard to follow; the tests should assign mul... | null |
trailofbits__manticore__1127 | trailofbits/manticore | 1,127 | defect | e153ded884f088e7ed558c6bd51395663a1ad783 | f9e7057264f0f5a9def5872e5aac107382854623 | Implement FPSE-like memory model | This PR tracks the implementation of the fpse-like memory model.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/trailofbits/manticore/1127)
<!-- Reviewable:end -->
| diff --git a/manticore/__main__.py b/manticore/__main__.py
index efe5d3166..a06717541 100644
--- a/manticore/__main__.py
+++ b/manticore/__main__.py
@@ -52,6 +52,8 @@ def positive(value):
parser.add_argument('--workspace', type=str, default=None,
help=("A folder name for temporaries and re... | 23 | 16 | 2 | [{"id": "G0", "claim": "The '# tmp imports' block in abstractcpu.py (a mid-file `import struct` and a star import from ..smtlib) looks like leftover scaffolding and should be cleaned up.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `assert... | null |
trailofbits__manticore__1138 | trailofbits/manticore | 1,138 | defect | 09e646d68701555900fa950e484fd09da16a6106 | 61d0e1c8efb80d4c0514abf1da0d18cd91755fe8 | Add RaceConditionDetector | For a contract of:
```
pragma solidity ^0.4.17;
contract Caller {
address public stored_address;
function callstoredaddress() {
stored_address.call();
}
function setstoredaddress(address addr) {
stored_address = addr;
}
}
```
It returns:
```
✘ 1 ➜ manticore --detect-transactio... | diff --git a/manticore/__main__.py b/manticore/__main__.py
index c8e7830fc..5ee8d1fe0 100644
--- a/manticore/__main__.py
+++ b/manticore/__main__.py
@@ -109,6 +109,9 @@ def positive(value):
parser.add_argument('--detect-env-instr', action='store_true',
help='Enable detection of use of pote... | 4 | 4 | 1 | [{"id": "G0", "claim": "The is_in_dispatcher heuristic is not differentiated from the fallback function and could be improved (e.g. via SolidityMetadata), so the dispatcher check misfires for fallback functions.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ... | null |
trailofbits__manticore__1139 | trailofbits/manticore | 1,139 | defect | 5ddc34ae033a2538d7c9a2f7bcda0f8dea628446 | d72ad8d3c8840b650840a89458fab5d19436d547 | Introduce a configuration system | This PR introduces a config/globals management system that addresses a few concerns about manticore:
1. The lack of a method to update certain configuration constants from Manticore's environment (such as solver timeout).
2. The ability to maintain a configuration file with a set of persistent flags and settings to... | diff --git a/manticore/__main__.py b/manticore/__main__.py
index c8e7830fc..c697e4af4 100644
--- a/manticore/__main__.py
+++ b/manticore/__main__.py
@@ -4,13 +4,32 @@
import argparse
from . import Manticore
-from .utils import log
+from .utils import log, config
# XXX(yan): This would normally be __name__, but t... | 11 | 8 | 2 | [{"id": "G0", "claim": "The Z3 command should take the z3 binary from a config parameter defaulting to `z3` (resolved from $PATH) instead of hard-coding it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out `#@memoized` line above can_be_t... | null |
trailofbits__manticore__1195 | trailofbits/manticore | 1,195 | defect | efc83253c9b8442a2ff19df184813f21583b3040 | 32eb65cee4925be312b462bcb3f1354634dd50ef | Eth updates | - add human_transactions top level function to ManticoreEVM
- allow str types to be used in `solidity_create_contract(..., args=('str goes here'))` (not only bytes)
- automatically truncate symbols that are too big for the solidity function argument they correspond to. e.g. passing a `BitVec(256)` into a function arg... | diff --git a/examples/evm/minimal.py b/examples/evm/minimal.py
index 51ae2c197..8a74b231e 100644
--- a/examples/evm/minimal.py
+++ b/examples/evm/minimal.py
@@ -26,10 +26,10 @@
'''
user_account = m.create_account(balance=1000, name='user_account')
-print("[+] Creating a user account", user_account.name)
+print("[+]... | 2 | 1 | 0 | [{"id": "G0", "claim": "Move the str type-forgiveness out of _serialize_bytes to someplace else, keeping that helper working only on bytearray (and the module on bytearray/Array and int/BitVec).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "human_transa... | null |
trailofbits__manticore__1212 | trailofbits/manticore | 1,212 | defect | d1612434980abd0ea45467c63d4272b21720b2be | 84d4b78227db0282d12fc523d5377d824de1ccea | Fix handling of overloaded functions and some other issues in SolidityMetadata | This draft PR is my proposed fix for issue #1210. It builds on PR #1211.
This PR currently
1. Rewrites `SolidityMetadata.__init__` to fix the handling of overloaded functions.
2. Separates the abi items for functions, events, constructor and fallback function into separate properties (though the event items are ... | diff --git a/manticore/ethereum/__init__.py b/manticore/ethereum/__init__.py
index 9ea32a78d..db330c13d 100644
--- a/manticore/ethereum/__init__.py
+++ b/manticore/ethereum/__init__.py
@@ -13,6 +13,7 @@
from ..utils.helpers import issymbolic, PickleSerializer
from ..utils import config
from ..utils.log import init_l... | 7 | 2 | 2 | [{"id": "G0", "claim": "Using re.match on every transaction callback might slow things down a lot, and the reviewer asks other maintainers whether regex is a good idea here.", "category": "performance", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The length check in _seriali... | null |
trailofbits__manticore__1220 | trailofbits/manticore | 1,220 | defect | 2a634b707c664f8d0150afa100e280fc55b5408d | 3b9a453bb8f587cf48f038b28c3d103ecac15614 | Preconstrain the data of symbolic human transactions | This PR implements a feature (enabled by default) to preconstrain the data of symbolic human transactions to avoid triggering uninteresting exceptions in the Solidity contract function dispatcher.
This PR fixes issue #731.
I've implemented the feature directly in `ManticoreEVM` and not e.g. as a plugin or in `EVM... | diff --git a/manticore/__main__.py b/manticore/__main__.py
index efe5d3166..492b30974 100644
--- a/manticore/__main__.py
+++ b/manticore/__main__.py
@@ -131,6 +131,9 @@ def positive(value):
eth_flags.add_argument('--limit-loops', action='store_true',
help='Avoid exploring constant funct... | 8 | 7 | 3 | [{"id": "G0", "claim": "Use `elif sort == 'CALL'` instead of the `else` branch with the `assert sort == 'CALL'` in `_transaction`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename `preconstrains_symbolic_tx_data` to `preconstrain_symbolic_t... | null |
trailofbits__manticore__1221 | trailofbits/manticore | 1,221 | defect | 2a634b707c664f8d0150afa100e280fc55b5408d | f1dbd112ceda62410f1d3d0c5f06739787971ce7 | Add convenience assertion & generate API | This invalidates #1214.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/trailofbits/manticore/1221)
<!-- Reviewable:end -->
| diff --git a/manticore/ethereum/__init__.py b/manticore/ethereum/__init__.py
index c8a62cac5..ef3608f21 100644
--- a/manticore/ethereum/__init__.py
+++ b/manticore/ethereum/__init__.py
@@ -1256,8 +1256,22 @@ def unregister_detector(self, d):
def workspace(self):
return self._executor._workspace._store.uri... | 2 | 1 | 0 | [{"id": "G0", "claim": "The reviewer asks whether generate_testcase should generate the testcase with the only_if constraint applied or not.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The docstring should document whether the only_if constraint ends ... | null |
trailofbits__manticore__1224 | trailofbits/manticore | 1,224 | defect | ae992ab6b590ac815f9deac080ea8bde13d9290b | 87d4a0c6b48f7adb49e1e74156dda706581e7906 | Fix all ResourceWarnings triggered by the test suite | This PR fixes all ResourceWarnings that are emitted in my Linux VM when I run the Manticore test suite like this: `PYTHONWARNINGS=error::ResourceWarning nosetests tests`
Fixes issue #1121 (opened by @yan)
This PR also fixes three invalid file open modes for binary files.
<!-- Reviewable:start -->
---
This ch... | diff --git a/examples/evm/coverage.py b/examples/evm/coverage.py
index 5306f28b7..60bf39591 100644
--- a/examples/evm/coverage.py
+++ b/examples/evm/coverage.py
@@ -3,7 +3,8 @@
m = ManticoreEVM()
m.verbosity(3)
# And now make the contract account to analyze
-source_code = open('coverage.sol').read()
+with open('cove... | 2 | 2 | 0 | [{"id": "G0", "claim": "Stop ignoring ResourceWarnings in .travis.yml (PYTHONWARNINGS should no longer be ignore::ResourceWarning).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The last remaining ResourceWarning generated during the LALR parser tabl... | null |
trailofbits__manticore__1239 | trailofbits/manticore | 1,239 | defect | 4365bc01358646a71debdf82ec5c0f98f77b0fc5 | e543169e6f7ce36eec696b3b58e0095bff43b9b1 | Use the address of symbolic conditional instructions | When two symbolic conditional instructions follow sequentially, the two paths of
the first instruction will be explored. But when the exploration reaches the
second instruction, because the at_symbolic_conditional flag has already been
set by the first one, only one of the two possible paths will be explored.
Thi... | diff --git a/manticore/core/cpu/arm.py b/manticore/core/cpu/arm.py
index b765a47a6..e44b1aa46 100644
--- a/manticore/core/cpu/arm.py
+++ b/manticore/core/cpu/arm.py
@@ -30,14 +30,14 @@ def instruction_implementation(cpu, *args, **kwargs):
should_execute = cpu.should_execute_conditional()
- if cpu._a... | 2 | 2 | 0 | [{"id": "G0", "claim": "Can we add a test covering the new handling of symbolic conditional instructions?", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's inline asm should be rewritten so the instruction addresses are explicit to future reader... | null |
trailofbits__manticore__1240 | trailofbits/manticore | 1,240 | defect | 4365bc01358646a71debdf82ec5c0f98f77b0fc5 | c005aab3e11ccf159dabbb593fdae84906d9a96a | Fix emulation being performed in the wrong mode | After the merge of the PR referenced at the end of this message into the master
branch of Unicorn in July 2016, the emulation mode is set according to the
least significant of bit of the program counter when it is updated.
When an instruction is not implemented at Manticore's level and emulation is
used, the PC v... | diff --git a/manticore/utils/emulate.py b/manticore/utils/emulate.py
index f5df03d9a..8f7cf7615 100644
--- a/manticore/utils/emulate.py
+++ b/manticore/utils/emulate.py
@@ -248,7 +248,10 @@ def _step(self, instruction):
saved_PC = self._cpu.PC
try:
- self._emu.emu_start(self._cpu.PC, self... | 2 | 1 | 1 | [{"id": "G0", "claim": "The ARM/Thumb-specific mode check should be moved out of the generic emulation code so the general code isn't mixed with cpu-specific code.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The thumb-mode emulation fix should be covere... | null |
trailofbits__manticore__1294 | trailofbits/manticore | 1,294 | defect | 8f520bd8135b0225055a5adda7d25f89cece300d | c9ab72d52fe70002eab23a724d1c358b7290043a | Fix multiple symbolic args solidity_create_contract | The `test_create_contract_two_instances` test was crashing before
this PR, due to calling `make_symbolic_buffer` twice with the same
buffer name (`'INITARGS'`) in `make_symbolic_arguments`.
Here's an example of such crash (from a bit different test code/when I
was developing it, but the idea/error is the same):
... | diff --git a/manticore/ethereum/manticore.py b/manticore/ethereum/manticore.py
index fb7c8de34..5f16d4b8e 100644
--- a/manticore/ethereum/manticore.py
+++ b/manticore/ethereum/manticore.py
@@ -384,6 +384,8 @@ def __init__(self, procs=10, workspace_url: str=None, policy: str='random'):
self._executor.subscribe(... | 2 | 2 | 0 | [{"id": "G0", "claim": "The new counter variable `_initargs_id` might be better named, e.g. `_initargs_buf_id`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Instead of the manual `_initargs_id` counter, use `new_array`'s `avoid_collisions` by ... | null |
trailofbits__manticore__1302 | trailofbits/manticore | 1,302 | defect | c29f7cf8672014cf02cfc1271ec1d0a3cb3983af | 25572ec7be5b62969caec0f64b9bb797966a4655 | Add symbol resolution feature for binary analysis | This PR adds symbol resolution through `core.Manticore.resolve()` for ELF binaries through DWARF debug information and symbol tables.
```
@m.hook(m.resolve('MyLib_function', line=4))
def hook(state):
m.terminate()
@m.hook(m.resolve('MyLib_otherfunc'))
def hook(state):
m.abort()
```
If the user do... | diff --git a/manticore/core/manticore.py b/manticore/core/manticore.py
index 91f236558..d94cc6dfc 100644
--- a/manticore/core/manticore.py
+++ b/manticore/core/manticore.py
@@ -10,6 +10,8 @@
import functools
import types
+from elftools.elf.elffile import ELFFile
+from elftools.elf.sections import SymbolTableSection... | 8 | 6 | 1 | [{"id": "G0", "claim": "Use triple double-quote characters for the new docstrings instead of triple single-quotes.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The elftools imports and symbol-resolution functionality must be moved out of Manti... | null |
trailofbits__manticore__135 | trailofbits/manticore | 135 | defect | 772b890993a4726fa17d873a372e32bf5a0c4d2e | e1ebbc934b1fd07c023f28ae7ef2803f8fc4e767 | Graceful fallback if Z3 doesn't support optimization queries | Based on reported version only.
https://github.com/trailofbits/manticore/issues/94 | diff --git a/manticore/core/smtlib/solver.py b/manticore/core/smtlib/solver.py
index 77e88065c..72be0ef0b 100644
--- a/manticore/core/smtlib/solver.py
+++ b/manticore/core/smtlib/solver.py
@@ -134,10 +134,13 @@ def __get__(self, obj, objtype):
'''Support instance methods.'''
return functools.partial(self.... | 3 | 3 | 2 | [{"id": "G0", "claim": "Z3Solver.__init__ invokes the parent constructor twice.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The PR should not enforce a minimum Z3 version by raising SolverException when the installed z3 is older than the minimum.... | null |
trailofbits__manticore__1406 | trailofbits/manticore | 1,406 | defect | e6fd754dbf02cab4a7a53307375b83ff4868adcd | 52a144748b43061877c8a290673e19325b47d512 | Add crytic-compile support | This PR adds the support for [`crytic-compile`](https://github.com/crytic/crytic-compile) and allows manticore to work natively on many platforms.
The support of `crytic-compile` comes with a set of [standardized options](https://github.com/crytic/crytic-compile/blob/master/crytic_compile/cryticparser/cryticparser.p... | diff --git a/manticore/__main__.py b/manticore/__main__.py
index 60c01fe0e..bcfc72656 100644
--- a/manticore/__main__.py
+++ b/manticore/__main__.py
@@ -7,6 +7,7 @@
import pkg_resources
+from crytic_compile import is_supported, cryticparser
from .core.manticore import ManticoreBase, set_verbosity
from .ethereum.... | 3 | 2 | 2 | [{"id": "G0", "claim": "Some tests of the new crytic-compile integration should be added before merging — e.g. initialize contracts via crytic-compile and check they are valid — by adding the truffle/metacoin test commands to the relevant section of the travis test runner script (ideally in a renamed job so the regular... | null |
trailofbits__manticore__1481 | trailofbits/manticore | 1,481 | defect | e6fd754dbf02cab4a7a53307375b83ff4868adcd | eaf8005d6dc88e221e228f7044a3a88ca379f5a5 | Detecting the use of BALANCE in a strict comparison | This taints the result of a BALANCE instruction and complaints if it is ever used in an EQ instruction.
Normally you can not trust the balance of an account as it can be incremented before the account is even created
The yellow paper first hints that the initial balance of an account is what is passed in the CREATE... | diff --git a/manticore/core/smtlib/expression.py b/manticore/core/smtlib/expression.py
index 99e709de6..bca3b5f52 100644
--- a/manticore/core/smtlib/expression.py
+++ b/manticore/core/smtlib/expression.py
@@ -76,15 +76,14 @@ def get_taints(arg, taint=None):
return
-def taint_with(arg, taint, value_bits=256, in... | 4 | 1 | 0 | [{"id": "G0", "claim": "The finalizer's new blanket `except Exception: print(e)` around generate_testcase should perhaps re-raise instead of silently carrying on.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The typo 'wil wbe' in the calldata_max_... | null |
trailofbits__manticore__1523 | trailofbits/manticore | 1,523 | defect | 7a9533a7a17531a07f0683f472e2c39a68c3271f | eda637a4f005e3f42fc06984880228da488b8569 | Simplify the pc whenever it is set. | This pull request simplifies `pc` using `simplify` in `visitor.py` whenever `pc` is set. This gives a significant speed-up whenever `DetectIntegerOverflow` is enabled. I think this is because that detector's use of taint cause `pc` to become symbolic, but in a way that can be simplified.
To demonstrate the speed-up,... | diff --git a/manticore/core/smtlib/visitors.py b/manticore/core/smtlib/visitors.py
index 486f5168b9..d04b5a7c6a 100644
--- a/manticore/core/smtlib/visitors.py
+++ b/manticore/core/smtlib/visitors.py
@@ -266,6 +266,7 @@ def __init__(self, **kw):
BitVecSub: operator.__sub__,
BitVecMul: operator.__mul__,... | 6 | 4 | 2 | [{"id": "G0", "claim": "The BitVecUnsignedDiv addition to ConstantFolderSimplifier should be moved to another PR (or at least into its own commit) and have a unit test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new pc property has no uses in th... | null |
trailofbits__manticore__1549 | trailofbits/manticore | 1,549 | defect | 1208759e553047f7f31e683ede24439558a24fe4 | 5add95decc754da7bf5aea76e2623864aff1e570 | Symbol friendly fake hash replacement for evm sha3 | This implements a fake hash model for evm sha3 so it is solvable.
This results in a different solidity based storage layout and will produce irreproducible tx traces if any hash result is used as part of the calldata in any transaction. | diff --git a/manticore/core/state.py b/manticore/core/state.py
index aad4fd485..b5b00dc73 100644
--- a/manticore/core/state.py
+++ b/manticore/core/state.py
@@ -311,7 +311,11 @@ def must_be_true(self, expr):
self._constraints, expr == False
)
- def solve_one(self, *exprs, constrain=False):
+ ... | 2 | 1 | 0 | [{"id": "G0", "claim": "Line 627 in ethereum/manticore.py is missing a `%s` or other format string, so `logger.info(\"Failed to compile contract\", contract_names)` cannot correctly print the contract names, and it should be fixed before anything else.", "category": "correctness", "verdict": "supported", "priority": "P... | null |
trailofbits__manticore__1596 | trailofbits/manticore | 1,596 | defect | efdf627d8641d8e254953974be02b03d37d6753a | 01843e6081b6bed1e35cb0eed0371b728aae8599 | Streamline State Serialization Interface | Adds a `SerializeState` exception that (ab)uses the concretization system to save a copy of the current state to the disk. Also adds a helper method to ManticoreBase that makes resuming execution from a saved state a bit cleaner. Overall, this should allow you to pause a concrete execution halfway through and then resu... | diff --git a/manticore/core/manticore.py b/manticore/core/manticore.py
index 82dff18e5..3da13e83a 100644
--- a/manticore/core/manticore.py
+++ b/manticore/core/manticore.py
@@ -311,6 +311,24 @@ def __init__(self, initial_state, workspace_url=None, policy="random", **kwargs)
def __str__(self):
return f"<{s... | 3 | 3 | 1 | [{"id": "G0", "claim": "Use a `with open(filename, \"rb\")` context manager instead of manually opening and closing the state file, so the descriptor is closed even if deserialization raises.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The plugin... | null |
trailofbits__manticore__1609 | trailofbits/manticore | 1,609 | defect | 5b2e15953394977cb0633b6d3e894b012c7f2609 | f7a599807572cbd7082c5e642ba66ad028640eb7 | Symbolic function strategies. | Currently used just for sha3. This PR implements 3 ways to deal with symbolic imprecisions.
Concretize
Uninstantiated functions + delayed fix
Fake: Let the solver choose a fake similar function | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2179d5b9d..41f241edd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -166,8 +166,8 @@ jobs:
# but Manticore fails to explore the paths due to the lack of the 0x1f opcode support
# see https://github.... | 2 | 2 | 1 | [{"id": "G0", "claim": "A debug print statement (print(\"kill\", st.id)) left in tests/ethereum/test_sha3.py should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The blanket `except Exception: pass` around func(data) in _on_unsound_... | null |
trailofbits__manticore__1614 | trailofbits/manticore | 1,614 | defect | 166b0415c8bbff477e1425ee83c6a22f5d4451aa | ffe9b157dda1ade0c67de82cb5483efe0615adee | Experiment with testing on OSX | Not committing to front-lining OSX support as a feature because there are some fundamental performance concerns, but I would like to see how the tests behave. | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8aa622fff..73188c3c5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -66,176 +66,8 @@ jobs:
env:
TEST_TYPE: ${{ matrix.type }}
run: |
- # Launches all examples; this assumes PWD is examples/scrip... | 4 | 3 | 1 | [{"id": "G0", "claim": "The macOS CI failure appears to be caused by the bash script's fall-through statement, because Mac ships an outdated version of bash.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "keystone has not been possible to build on t... | null |
trailofbits__manticore__1620 | trailofbits/manticore | 1,620 | defect | 1480f4b9c2a320d254ff826f5d1f02794ad10862 | 42c498234d62d85017cddc981adb257db76caef0 | TUI Support Infrastructure | Adds preliminary support for the TUI to Manticore. Lots of limitations and shortcomings right now. In no particular order:
* The log capture doesn't work with multiprocessing. Logs created in different processes (unsurprisingly) don't fire the callback that inserts them into the server's buffer. Fixing this will prob... | diff --git a/manticore/core/manticore.py b/manticore/core/manticore.py
index e3919f437..4b7818ff8 100644
--- a/manticore/core/manticore.py
+++ b/manticore/core/manticore.py
@@ -2,6 +2,7 @@
import itertools
import logging
import sys
+import time
import typing
import random
import weakref
@@ -21,11 +22,18 @@
from ... | 5 | 2 | 0 | [{"id": "G0", "claim": "M002 asks for a comment explaining why the multiprocessing log queue's max size of 15000 was chosen and why it differs from the 5000-size deques used by the threading and single workers.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
trailofbits__manticore__1624 | trailofbits/manticore | 1,624 | defect | d29bf0c3151deb500579bf0ae578ef8dfe8d4363 | 1af45e8255fd610c646a389ffb69b48acbe536ab | Transparently compress & decompress persisted state files | Fixes #1622. | diff --git a/manticore/core/manticore.py b/manticore/core/manticore.py
index 8576b59d71..dab1d5782f 100644
--- a/manticore/core/manticore.py
+++ b/manticore/core/manticore.py
@@ -19,7 +19,7 @@
from ..utils import config
from ..utils.deprecated import deprecated
from ..utils.event import Eventful
-from ..utils.helper... | 2 | 2 | 0 | [{"id": "G0", "claim": "Leave the serializer class named `PickleSerializer` instead of renaming it to `GzipPickleSerializer`, since the two are not offered side by side, so that the diff stays small.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":... | null |
trailofbits__manticore__1635 | trailofbits/manticore | 1,635 | defect | 384e670d7885dd01ace222ff173408c1d7ce454e | abb191a3a562f30aba42ec4b4b4b4604c283130f | Add __slots__ to expressions | This PR modifies SMTLib's inheritance structure to avoid using multiple inheritance. This allows us to use `__slots__` to improve memory usage and performance with SMTLib expressions.
## Old inheritance diagram:
:
if (
... | 6 | 2 | 0 | [{"id": "G0", "claim": "The value property on BoolConstant should ideally be present only in a debug mode rather than always.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The taint defaulting should use kwargs.setdefault('taint', ...) instead of the ex... | null |
trailofbits__manticore__1672 | trailofbits/manticore | 1,672 | defect | e9c5c535a3aba976b2acae4df15079f40218b338 | d230b0617c547f195b52784e5fa939b894b3207b | Rework syscall invocation for proper behavior under typeguard | Previously, using Typeguard with Manticore would break several emulated syscalls. With this commit, it does not.
Some background information:
When a syscall is made from an emulated binary, Manticore uses the syscall number to look up the appropriate Python method that models that syscall, and then uses Python i... | diff --git a/manticore/native/cpu/abstractcpu.py b/manticore/native/cpu/abstractcpu.py
index 5678828ff..a2091ca37 100644
--- a/manticore/native/cpu/abstractcpu.py
+++ b/manticore/native/cpu/abstractcpu.py
@@ -23,11 +23,17 @@
from capstone.x86 import X86_REG_ENDING
from capstone.arm import ARM_REG_ENDING
-from typin... | 2 | 2 | 0 | [{"id": "G0", "claim": "Remove the type names (callable, tuple) from the get_argument_values docstring parameters since the signature now carries type annotations.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Check whether the wrapt dependency i... | null |
trailofbits__manticore__1673 | trailofbits/manticore | 1,673 | defect | e9c5c535a3aba976b2acae4df15079f40218b338 | cb0ac987658f1e1462ca8ee52235a80f1d7bae21 | Overhaul Linux file emulation | Previously, open file descriptors could be mapped to any of the `File`, `Directory`, `SocketDesc`, `Socket`, and `ProcSelfMaps` classes, which didn't share a common supertype, and which didn't have consistent interfaces.
Now, each of these classes implements the `FdLike` abstract base class, which specifies a number... | diff --git a/manticore/platforms/linux.py b/manticore/platforms/linux.py
index fc9e32bba..a48835362 100644
--- a/manticore/platforms/linux.py
+++ b/manticore/platforms/linux.py
@@ -9,7 +9,10 @@
import time
import resource
import tempfile
-from typing import Deque, Union, List, TypeVar, cast, Optional
+
+from abc imp... | 8 | 8 | 2 | [{"id": "G0", "claim": "The unused `TypeVar` import should be dropped from the typing import line.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docstring typo \"Adds and entry\" should read \"Adds an entry\".", "category": "documentation",... | null |
trailofbits__manticore__1681 | trailofbits/manticore | 1,681 | defect | 1e82ec457c324228884cc208713d9e0175f99db5 | 590e0e8bf2a12c9d932c2432ff21df16cf548ff0 | Symbolic model for strcpy | Draft for work on strcpy. Working on adding symbolic support. | diff --git a/manticore/native/models.py b/manticore/native/models.py
index 4cbfa3951..853bda13b 100644
--- a/manticore/native/models.py
+++ b/manticore/native/models.py
@@ -140,3 +140,38 @@ def strlen(state, s):
ret = ITEBV(cpu.address_bit_size, byt == 0, offset, ret)
return ret
+
+
+def strcpy(stat... | 6 | 6 | 1 | [{"id": "G0", "claim": "The `cpu = state.cpu` / `ret = dst` initialization in strcpy should come after dst is concretized, in case dst is symbolic.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add the type hints to the strcpy function signature itself ... | null |
trailofbits__manticore__1701 | trailofbits/manticore | 1,701 | defect | f8ad2dfdb1a80de89814bb16c42315ef46e54155 | 7a45dbc85785d42323a42705fe13837537c12f48 | Capstone 5 development and updates (release-candidate) | While capstone 5 isn't released yet, I thought I'd get a head start on trying to fix what would be broken when it is released.
Our tests brought to light a few issues/regressions in the [`next` branch](https://github.com/aquynh/capstone/tree/next) of Capstone:
- [x] https://github.com/aquynh/capstone/issues/162... | diff --git a/.coveragerc b/.coveragerc
index f1bd1a4e9..032b95d78 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -17,3 +17,5 @@ exclude_lines =
# We don't bother testing code that's explicitly unimplemented
raise NotImplementedError
+ raise AssertionError
+ raise Aarch64InvalidInstruction
diff --git a/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The newly added testBool5 test in tests/other/test_smtlibv2.py has no related changes to the smt submodule to justify it, suggesting it is an accidental leftover from a bad merge.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
trailofbits__manticore__1710 | trailofbits/manticore | 1,710 | defect | 55e2486f4791757b77fd16b0dfe65d4ecb6e3e80 | 5bad00f95d23ad6e5d10382d34c132621f864c14 | Snapshots & is_main | Duplicate and save ready state to do expensive temporary search and rollback
Fix Manticore.is_main logic | diff --git a/manticore/core/manticore.py b/manticore/core/manticore.py
index 635e983a5..5adb5d60a 100644
--- a/manticore/core/manticore.py
+++ b/manticore/core/manticore.py
@@ -357,6 +357,53 @@ def __init__(self, initial_state, workspace_url=None, outputspace_url=None, **kw
# Workers will use manticore __dict_... | 2 | 2 | 1 | [{"id": "G0", "claim": "The is_main logic was not working and take_snapshot, which should only work from main, should rely on is_main rather than just the at_not_running decorator.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G6", "claim": "The new code is not f... | null |
trailofbits__manticore__1717 | trailofbits/manticore | 1,717 | defect | 099dc47b69b089fc550d47047735f6ff4fe77cc9 | c25e36319c3126a23aa1e12be2cec8d8cf43cf03 | Manticore verifier | Adds a new command line target to check the provided properties on a contract until some termination condition is met.
`manticore-verifier property.sol --contract TestToken` performs the following steps:
* Create an EVMWorld with accounts for the contract deployer, the target contract account, the contract tester, ... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8aa622fff..e6fcb3536 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -167,8 +167,8 @@ jobs:
coverage run -m manticore . --contract MetaCoin --workspace output --exclude-all --evm.oog ignore --evm.txfail optimisti... | 3 | 2 | 1 | [{"id": "G0", "claim": "The new clear_ready_states function is a duplicate of clear_terminated_states just above it: its body removes terminated states and asserts on the terminated count instead of clearing the ready states.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"},... | null |
trailofbits__manticore__1777 | trailofbits/manticore | 1,777 | defect | 8a8f35c53d962791a960e88e6f919ef1b03c0e03 | 9dc5f7b7649afb564f490813eb79a7db5ae36dd0 | Add Manticore native State-specific hooks | Can now add hooks to specific states instead of _all_ states.
Still need to write tests. | diff --git a/manticore/native/manticore.py b/manticore/native/manticore.py
index 95827b706..5d4e5e077 100644
--- a/manticore/native/manticore.py
+++ b/manticore/native/manticore.py
@@ -5,11 +5,12 @@
import os
import shlex
import time
+from typing import Callable, Optional
import sys
from elftools.elf.elffile impor... | 3 | 3 | 1 | [{"id": "G0", "claim": "A type hint for the `state` parameter of `__setstate__` in manticore/native/state.py would be appropriate (reviewer is unsure whether it is more appropriate not to have one).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
trailofbits__manticore__1780 | trailofbits/manticore | 1,780 | defect | 8a8f35c53d962791a960e88e6f919ef1b03c0e03 | bd569944b12a890c35ff1d1e7175296c1c0d46d1 | Linux: Add stat method for FdLike | This was missing previously but should be supported for anything that has a file descriptor. | diff --git a/manticore/platforms/linux.py b/manticore/platforms/linux.py
index bc2e88f01..68f4abff9 100644
--- a/manticore/platforms/linux.py
+++ b/manticore/platforms/linux.py
@@ -105,6 +105,30 @@ class creation time, you will get an error only if you try to instantiate
return cls
+@dataclass
+class StatResul... | 3 | 2 | 1 | [{"id": "G0", "claim": "Changing File.stat from returning a negative errno to raising FdError may be wrong, since an unhandled Python exception could crash Manticore or produce an incorrect errno, and the reviewer asks whether it is right and suggests giving the failing syscall return codes a second look.", "category":... | null |
trailofbits__manticore__1785 | trailofbits/manticore | 1,785 | defect | 8a8f35c53d962791a960e88e6f919ef1b03c0e03 | 41b2b505e8e7588aed712f53b2cfc9b1fa166140 | Use default handler for symbolic system call arguments | This will only be called when there is an implementation of the system
call in the concrete Linux class and no implementation in the symbolic
SLinux.
The action is simply to concretize any found symbolic system call
arguments.
This should hopefully ease the use of Manticore when it encounters
symbolic argumen... | diff --git a/manticore/native/cpu/abstractcpu.py b/manticore/native/cpu/abstractcpu.py
index 57489de5c..85e2b3cd5 100644
--- a/manticore/native/cpu/abstractcpu.py
+++ b/manticore/native/cpu/abstractcpu.py
@@ -3,7 +3,7 @@
import logging
import struct
import types
-from functools import wraps
+from functools import wr... | 2 | 1 | 0 | [{"id": "G0", "claim": "The __qualname__ string-parsing used to find the defining class of the syscall implementation is fragile and should be replaced with a check based on inspect.getmembers of the instance and its superclass.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduc... | null |
trailofbits__manticore__2410 | trailofbits/manticore | 2,410 | defect | fd69381a2c1cc7f83a1552f7d6fef762bfee1e14 | ae0c6cab57b97814ddae66fb2d10ff4e92076b6d | Support to use boolector as the SMT solver | This branch includes initial support for [boolector](https://github.com/Boolector/boolector). Only recent versions (e.g 3.2.x) are supported. Ancient versions like the one in Ubuntu 18.04 (1.5.x) are not. Closes #2403 | diff --git a/manticore/core/smtlib/constraints.py b/manticore/core/smtlib/constraints.py
index ba7aae9e1..82621b4d2 100644
--- a/manticore/core/smtlib/constraints.py
+++ b/manticore/core/smtlib/constraints.py
@@ -393,7 +393,7 @@ def new_bitvec(self, size, name=None, taint=frozenset(), avoid_collisions=False)
i... | 2 | 2 | 1 | [{"id": "G0", "claim": "Rename the new `Boolector` class to `BoolectorSolver` to follow the naming pattern of the other solvers.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Basic functionality of the boolector solver should be tested in CI, w... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.