binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

'Unable to write entire contents' in new mapped views

Open plafosse opened this issue 6 months ago • 2 comments

I'm not sure what exactly the process here should look like but I'd expect to be able to do the following:

  1. Open a new mapped view.
  2. Paste in some code.
  3. Rebase that code.

Currently when I try to do step 2 I get a pop up error 'Unable to write entire contents'

plafosse avatar Jun 16 '25 13:06 plafosse

Yeah this is known -- right now the code creates a segment in the mapped view with a size zero. The issue is not fixed because I do not have a good fix for it, I dunno what size should we use instead of zero

xusheng6 avatar Jun 16 '25 13:06 xusheng6

Is there another issue tracking this? Its not hard to come up with a good size. sizeof(paste_buffer), or page-aligned(sizeof(paste_buffer)) would be reasonable decisions. zero isn't a reasonable decision.

plafosse avatar Jun 16 '25 13:06 plafosse

The basic workflow for this should be resolved now. See https://github.com/Vector35/binaryninja-api/issues/5186#issuecomment-3066323965

Fixed in 5.1.7927-dev.

bpotchik avatar Jul 13 '25 01:07 bpotchik