mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 11:23:25 +00:00
Add potential integer overflow check among Framework APIs
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
dd64f58e55
commit
b450eef166
@ -189,6 +189,7 @@ impl From<aster_frame::Error> for Error {
|
||||
aster_frame::Error::IoError => Error::new(Errno::EIO),
|
||||
aster_frame::Error::NotEnoughResources => Error::new(Errno::EBUSY),
|
||||
aster_frame::Error::PageFault => Error::new(Errno::EFAULT),
|
||||
aster_frame::Error::Overflow => Error::new(Errno::EOVERFLOW),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user