Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix core on Ventura due to hardcoded size. #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dmidecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4811,8 +4811,10 @@ static void dmi_table(off_t base, u32 len, u16 num, u32 ver, const char *devmem,
* This CFRelease throws 'Segmentation fault: 11' since macOS 10.12, if
* the compiled binary is not signed with an Apple developer profile.
*/
#ifdef SIGNED_BINARY // So don't do that unless you signed it
if (NULL != properties)
CFRelease(properties);
#endif

IOObjectRelease(service);
}
Expand Down Expand Up @@ -5147,7 +5149,7 @@ int main(int argc, char * const argv[])
goto exit_free;
}

CFDataGetBytes(dataRef, CFRangeMake(0, 0x20), (UInt8*)buf);
CFDataGetBytes(dataRef, CFRangeMake(0, CFDataGetLength(dataRef)), (UInt8*)buf);

if (NULL != dataRef)
CFRelease(dataRef);
Expand Down