Comments (4)
Thanks,
this should be fixed in e458353 , can you check it again?
from ulfius.
Hi, thanks for your reply!
But I think it has not been fixed completely, maybe I didn't explain the issue clearly, sorry for that : )
What I think of the issue is:
At line 1689 in ulfius.c, u_map_init(u_instance->default_headers);
will be called, in this function, u_instance->default_headers->keys
might be freed [u_map.c, line 45].
Then, at line 1701 in ulfius.c, there is a possibility thatulfius_clean_instance(u_instance);
will be called. This function, it will execute this trace:
u_map_clean_full(u_instance->default_headers) [ulfius.c, line 1627] ->
u_map_clean(u_map) [u_map.c, line 82] ->
o_free(u_map->keys) [u_map.c, line 72]
In this case, u_instance->default_headers->keys
will be freed again. May be it can be fixed by checking if u_map->keys == NULL before [u_map.c, line 72].
Have a good day~
from ulfius.
OK, I think I see now, I've added some u_map->keys = NULL;
and al. in the functions u_map_clean
and u_map_init
in the last commit 0d4f7ab , can you verify it again please?
from ulfius.
I think it is fine now, so I'll close this issue, thanks for your cooperation!
from ulfius.
Related Issues (20)
- [Issue] simple_example: build failed HOT 1
- ulfius_add_endpoint_by_val() url_prefix VS. url_format HOT 2
- HTTP GET with array as response body HOT 2
- simple_example as static build for managed server HOT 2
- undefined reference to `pointer_list_init' HOT 2
- How to setup https mode? HOT 4
- Sending file in response for Ulfius REST request
- Do we have any official Ulifius Yocto recipe? HOT 1
- How can I reopen a closed issue? HOT 4
- [Issue]../../src/libulfius.so: undefined reference to `[email protected]' HOT 1
- [Issue] A use after free bug in src/ulfius.c HOT 1
- [Issue]A use after free bug in src/ulfius.c HOT 1
- [Feature request] How to use libulfius to implement a secure, asynchronious and scalable REST API? HOT 3
- What is the best way to let libulfius interact with libpq? HOT 2
- uwsc can't connect to socket while wscat can HOT 2
- Ulfius failed to link microhttpd on mingw64 using CMake HOT 4
- Support for graceful shutdown HOT 2
- How to add swagger openAPI documentation for ulfius based webservices ? HOT 3
- Issue faced in file_upload_callback in Ulfius TLS mode [HTTPS] HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ulfius.