Closed ChAoSUnItY closed 1 year ago
From https://github.com/vlang/v/issues/17173 and https://github.com/vlang/v/pull/17197, variable should not shadow import symbol, there are several potential errors found in vinix:
modules/memory/mmap/mmap.v:268:6
266 | pub fn mmap(_pagemap &memory.Pagemap, addr voidptr, _length u64, prot int, flags int, _resource &resource.Resource, offset i64) ?voidptr { 267 | mut pagemap := unsafe { _pagemap } 268 | mut resource := unsafe { _resource } | ~~~~~~~~ 269 | 270 | if _length == 0 {
modules/file/epoll.v:209:7
207 | } 208 | 209 | mut event := unsafe { &ret_events[i] } | ~~~~~ 210 | 211 | mut fd := fd_from_fdnum(unsafe { nil }, fdnum) or {
modules/file/epoll.v:218:7
216 | } 217 | 218 | mut resource := fd.handle.resource | ~~~~~~~~ 219 | 220 | status := resource.status
modules/file/epoll.v:244:7
242 | 243 | mut epoll_event := unsafe { &epoll_events[which] } 244 | mut event := unsafe { &ret_events[0] } | ~~~~~ 245 | 246 | if u32(status) & epoll_event.events != 0 {
modules/file/file.v:118:7
116 | } 117 | 118 | mut resource := fd.handle.resource | ~~~~~~~~ 119 | 120 | status := resource.status
modules/file/file.v:449:6
447 | } 448 | 449 | mut resource := &resource.Resource(unsafe { nil }) | ~~~~~~~~ 450 | mut fd := &FD(0) 451 |
This bug is fixed in 181433618a6340ee22da237a5d645c8b280b52ca
From https://github.com/vlang/v/issues/17173 and https://github.com/vlang/v/pull/17197, variable should not shadow import symbol, there are several potential errors found in vinix:
modules/memory/mmap/mmap.v:268:6
modules/file/epoll.v:209:7
modules/file/epoll.v:218:7
modules/file/epoll.v:244:7
modules/file/file.v:118:7
modules/file/file.v:449:6