bitlist maxSize off by one and inconsistent progressive list default limits
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- backend
Línea de trabajo
Comienza localizando las definiciones de BitListType, ProgressiveBitListType, ProgressiveByteListType, ProgressiveListBasicType y ProgressiveListCompositeType. Comprueba el cálculo de maxSize y cada límite predeterminado, y después ejecuta la suite de pruebas existente correspondiente para verificar que el límite de bytes y los valores predeterminados de las listas progresivas sean coherentes.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Two small follow-ups from #545, noticed while wiring the limits into lodestar (ChainSafe/lodestar#10042).
BitListTypeandProgressiveBitListTypecomputemaxSize = Math.ceil(limitBits / 8) + 1, which over-estimates by one byte whenlimitBitsis not a multiple of 8 (limit 7 gives 2, the largest encoding is 1 byte). Exact isMath.floor(limitBits / 8) + 1.ProgressiveByteListTypedefaults its limit toPROGRESSIVE_LIST_MAX_SIZEwhileProgressiveListBasicType,ProgressiveListCompositeTypeandProgressiveBitListTypedefault toNumber.MAX_SAFE_INTEGER.
Both are harmless as maxSize is only used as an upper bound, noting for consistency.
- Lenguaje dominante
- TypeScript
- Estrellas
- 62
- Forks
- 30
- Merge medio
- 4 h 37 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ChainSafe/ssz
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
ListBasicType.serialize accepts values longer than the list limitPosiblemente ocupada @kutluhaneth46 la tomó hace 1 día. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ChainSafe/ssz#575 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
BitList deserialization with reuseBytes: true mutates the input bufferPosiblemente ocupada @yinbowen-dc la tomó hace 9 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ChainSafe/ssz#559 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
SSZ Union Deserialization Vulnerable to Trailing Data for Certain VariantsPosiblemente ocupada @shadowzzed la tomó hace 80 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
UintNumberType.serialize silently wraps out-of-range values (negative, NaN, overflow)Posiblemente ocupada @kutluhaneth46 la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
Todos los issues de ChainSafe/ssz
Issues similares
-
Release utils decode git output chunk by chunk, so a multi-byte character can turn into U+FFFDPosiblemente ocupada @goranai la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 2 días
-
Task retarget keeps the old host in task scope and adds the new host in a form that matches nothingPosiblemente ocupada @chaitanya0305 la tomó hoy. Abiertobug P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
BaaRai/ARTEX#652 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
compiler-explorer/compiler-explorer#9710 ·
Los mantenedores suelen responder en 1 día
-
test(web): RevealArtwork's warm tests flake on CI because a 0 ms idle timeout means no deadlineAbiertobug effort:S P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
nightscout/nocturne#4556 ·
Los mantenedores suelen responder en 1 día
-
sumHorizontal, maxHorizontal, minHorizontal, allHorizontal, anyHorizontal, struct and argSortBy treat strings as literals instead of column namesPosiblemente ocupada @tomaionescu la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pola-rs/nodejs-polars#486 ·
Los mantenedores suelen responder en 1 día