Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

DataArrayProxy converting dimensions from double to size_t from JSON

Aperta
#414 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
data

Direzione di ricerca

Inizia individuando DataArrayProxy::readVector e seguendo i suoi chiamanti per le dimensioni di tuple e component. Esamina i controlli di intervallo JSON esistenti e le aspettative di compatibilità dei file di pipeline; il lavoro è completato quando le dimensioni eccessive o non valide falliscono con una spiegazione senza compromettere i file esistenti supportati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

In DataArrayProxy::readVector, an array of numbers is read from JSON and converted to a std::vector<size_t>. This function is used to read the tuple and component dimensions from JSON. This function does some checks on the range of acceptable values; however, it does not report any errors and has an implicit conversion between double and size_t inside its check. For exceedingly large datasets this would be an issue when attempting to read and write their dimensions.

A possible solution would be to store the dimensions as a string though this would affect backwards compatibility in pipeline files. Additionally better error reporting should be implemented to tell the user why the read failed.

Lingua principale
C++
Stelle
8
Fork
22
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BlueQuartzSoftware/SIMPL

Tutte le issue di BlueQuartzSoftware/SIMPL

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.