Some C++ API wrappers over core types are not safe to copy

Offen
#8,630 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

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

Rechercherichtung

Start by reading the declarations and implementations of BinaryReader, BinaryWriter, BaseAddressDetection, and FirmwareNinja; the issue does not name specific files. Check their copy and destructor semantics, then identify which wrappers need consistent copy behavior. Done means the affected types have safe, defined copy semantics, with tests covering copying where the project provides them.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Version and Platform (required):

  • Binary Ninja Version: 6.1.10815-dev (8ca0d177)
  • Edition: Commercial
  • OS: macOS
  • OS Version: 27.2 (26B5091g)
  • CPU Architecture: Apple silicon

Bug Description:
Some types, such as BinaryReader, BinaryWriter, BaseAddressDetection, FirmwareNinja (among others) do not properly implement the rule of 3. This makes them unsafe to copy.

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

  1. Read the code

Expected Behavior:
These should probably firm up their semantics/remove their custom destructor

Vorherrschende Sprache
C++
Sterne
1.3k
Forks
304
Ø Merge
2 T. 20 Std.
Gemergte PRs (30 T.)
10

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Vector35/binaryninja-api

Alle Issues in Vector35/binaryninja-api

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

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