dmlc / dmlc/MXNet.cpp

Missing input validation can cause memory corruption.

Offen
#74 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C++
Sterne
115
Forks
78
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I have some code that can vary the batch size as I process the data. I have been trying it with mxnet, and ran into memory corruptions and crashes. I traced the problem to an wrongly sized array, code to reproduce the problem is attached. Ideally mxnet should report the array is of an unexpected size and abort.

[testMXNet.zip](https://github.com/dmlc/MXNet.cpp/files/777305/testMXNet.zip)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start by running the attached testMXNet.zip reproduction and trace the wrongly sized array through the MXNet C++ interface. Identify where the batch-size input is accepted and determine how an unexpected array size is currently handled. Done means the invalid size is reported and processing aborts without memory corruption or a crash.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp
Bereich
machine-learning
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.