Atlas icon indicating copy to clipboard operation
Atlas copied to clipboard

`NVM_FindRegion` should return NULL or error on failure

Open k4rtik opened this issue 9 years ago • 0 comments

On a trivial program to read a string from a non-existent region, currently no error is returned:

15    uint32_t readreg = NVM_FindRegion("writer", O_RDONLY);
(gdb) 
17    assert(readreg);
(gdb) p readreg 
$1 = 100

We should perhaps return NULL and document the behavior.

k4rtik avatar Jun 20 '16 22:06 k4rtik