Source level security checked

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7316 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jji4 2009-01-20 04:17:05 +00:00
parent ba992f96fa
commit 79864f54ce
1 changed files with 4 additions and 0 deletions

View File

@ -593,6 +593,10 @@ PcRtcSetWakeupTime (
// Just support set alarm time within 24 hours
//
PcRtcGetTime (&RtcTime, &Capabilities, Global);
Status = RtcTimeFieldsValid (&RtcTime);
if (EFI_ERROR (Status)) {
return EFI_DEVICE_ERROR;
}
if (!IsWithinOneDay (&RtcTime, Time)) {
return EFI_UNSUPPORTED;
}