We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
/描述bug Mac枚举串口失败 `char *getSerialPath(char *dest, io_object_t &serialPort) { CFTypeRef calloutCFString;
calloutCFString = IORegistryEntryCreateCFProperty(serialPort, CFSTR(kIOCalloutDeviceKey), kCFAllocatorDefault, 0); if (calloutCFString) { // sizeof(dest) = 8bytes, can not copy all bytes // CFStringGetCString(static_cast<CFStringRef>(calloutCFString), dest, sizeof(dest), kCFStringEncodingUTF8); CFStringGetCString(static_cast<CFStringRef>(calloutCFString), dest, MAXPATHLEN, kCFStringEncodingUTF8); CFRelease(calloutCFString); } return dest;
}`
重现步骤 mac下,调用getPortInfoList 预期行为 无 截图
运行环境信息:
其他内容 无
The text was updated successfully, but these errors were encountered:
感谢反馈,可以加群交流
Sorry, something went wrong.
fixed(getPortInfoList): #75 fix getPortInfoList crash on macos
63b9999
No branches or pull requests
/描述bug
Mac枚举串口失败
`char *getSerialPath(char *dest, io_object_t &serialPort)
{
CFTypeRef calloutCFString;
}`
重现步骤
![image](https://private-user-images.githubusercontent.com/24838327/240459655-f70f0d64-76b9-476b-95ad-7713558f1315.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMzk0MTAsIm5iZiI6MTczOTIzOTExMCwicGF0aCI6Ii8yNDgzODMyNy8yNDA0NTk2NTUtZjcwZjBkNjQtNzZiOS00NzZiLTk1YWQtNzcxMzU1OGYxMzE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDAxNTgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ5YmNmZjZkYmRjMGEyZDE3ZjI3YzgyNjUxODAzNjgyNWE3YzNlNGM0Y2JmN2E4NmVhYTIzMDg1NjY4ODlkZTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qDl6Uvuj4xFxuILAFluxil8Gk4FX0JBbJuKikcM-CSQ)
mac下,调用getPortInfoList
预期行为
无
截图
运行环境信息:
其他内容
无
The text was updated successfully, but these errors were encountered: