Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-1222

NAPI DataView and TypedArray conversions ignore byteOffset

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Node.js

      https://github.com/realm/realm-js/blob/f2fd5e1956b9a6448bf410adeb92557dc5be64a6/src/node/node_buffer.hpp#L48-L60

      That code should be adding the byte offset of the view to the start address of the ArrayBuffer. Instead, it is just returning the start address with no offsetting.

            Assignee:
            franck.franck@mongodb.com Franck Franck (Inactive)
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: