You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/10/22 18:07:58 UTC

[GitHub] [incubator-nuttx-apps] pkarashchenko commented on a diff in pull request #1376: Fix thttpd_alloc.h:64:32: error: 'free' called on pointer 'hc' with nonzero offset 286 [-Werror=free-nonheap-object]

pkarashchenko commented on code in PR #1376:
URL: https://github.com/apache/incubator-nuttx-apps/pull/1376#discussion_r1002548642


##########
netutils/thttpd/libhttpd.h:
##########
@@ -204,9 +211,18 @@ typedef struct
   char *hostdir;
   char *authorization;
   char *remoteuser;
-  size_t maxdecodedurl, maxorigfilename, maxexpnfilename, maxencodings,
-    maxpathinfo, maxquery, maxaccept, maxaccepte, maxreqhost, maxhostdir,
-    maxremoteuser, maxresponse;
+  size_t maxdecodedurl;
+  size_t maxorigfilename;
+  size_t maxexpnfilename;
+  size_t maxencodings;
+  size_t maxpathinfo;
+  size_t maxquery;
+  size_t maxaccept;
+  size_t maxaccepte;
+  size_t maxreqhost;
+  size_t maxhostdir;
+  size_t maxremoteuser;
+  size_t maxresponse;

Review Comment:
   Please fix at line 230 as well



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org