File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -537,6 +537,7 @@ jobs:
537
537
asan.test_asyncify_longjmp
538
538
asan.test_pthread_run_on_main_thread
539
539
asan.test_minimal_runtime_global_initializer
540
+ asan.test_fs_js_api_wasmfs
540
541
lsan.test_dylink_dso_needed
541
542
lsan.test_stdio_locking
542
543
lsan.test_dlfcn_basic
Original file line number Diff line number Diff line change @@ -195,13 +195,12 @@ addToLibrary({
195
195
} else {
196
196
bytesRead = __wasmfs_read ( stream . fd , dataBuffer , length ) ;
197
197
}
198
- bytesRead = FS . handleError ( bytesRead ) ;
199
-
200
- for ( var i = 0 ; i < length ; i ++ ) {
198
+ for ( var i = 0 ; i < bytesRead ; i ++ ) {
201
199
buffer [ offset + i ] = { { { makeGetValue ( 'dataBuffer' , 'i' , 'i8' ) } } }
202
200
}
203
201
204
202
_free ( dataBuffer ) ;
203
+ bytesRead = FS . handleError ( bytesRead ) ;
205
204
return bytesRead ;
206
205
} ,
207
206
// Note that canOwn is an optimization that we ignore for now in WasmFS.
@@ -219,8 +218,8 @@ addToLibrary({
219
218
} else {
220
219
bytesRead = __wasmfs_write ( stream . fd , dataBuffer , length ) ;
221
220
}
222
- bytesRead = FS . handleError ( bytesRead ) ;
223
221
_free ( dataBuffer ) ;
222
+ bytesRead = FS . handleError ( bytesRead ) ;
224
223
225
224
return bytesRead ;
226
225
} ,
You can’t perform that action at this time.
0 commit comments