MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / HandleBuiltinUnreachable

Function HandleBuiltinUnreachable

Library/OcGuardLib/Ubsan.c:392–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392static void
393HandleBuiltinUnreachable(bool isFatal, struct CUnreachableData *pData)
394{
395 char szLocation[LOCATION_MAXLEN];
396
397 ASSERT(pData);
398
399 if (isAlreadyReported(&pData->mLocation))
400 return;
401
402 DeserializeLocation(szLocation, LOCATION_MAXLEN, &pData->mLocation);
403
404 Report(isFatal, "UBSan: Undefined Behavior in %s, calling __builtin_unreachable()\n",
405 szLocation);
406}
407
408static void
409HandleTypeMismatch(bool isFatal, struct CSourceLocation *mLocation, struct CTypeDescriptor *mType, unsigned long mLogAlignment, uint8_t mTypeCheckKind, unsigned long ulPointer)

Callers 1

Calls 3

isAlreadyReportedFunction · 0.85
DeserializeLocationFunction · 0.85
ReportFunction · 0.70

Tested by

no test coverage detected