xiaoxiang781216 commented on code in PR #8279: URL: https://github.com/apache/nuttx/pull/8279#discussion_r1089059682
########## libs/libc/netdb/lib_dnsquery.c: ########## @@ -438,13 +437,12 @@ static int dns_recv_response(int sd, FAR union dns_addr_u *addr, int naddr, /* Validate query type and class */ que = (FAR struct dns_question_s *)nameptr; - memcpy(&bak, que, sizeof(struct dns_question_s)); /* N.B. Unaligned access may occur here */ Review Comment: Yes, since que may be unaligned. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
