ASAN doesn’t report memory leak for glib’s GPtrArray related functions

I find ASAN doesn’t report memory leak for glib‘s GPtrArray related functions. For example: $ cat test_asan.c #include <glib.h> int main() { GPtrArray *gparray = g_ptr_array_new_with_free_func(g_free); g_ptr_array_add(gparray, g_strdup(“–“)); } Build and run this file: $ clang -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fsanitize=address -g test_asan.c -o test_asan -lglib-2.0 $ ./test_asan $ Nothing is reported. But in fact, the above…

Details

Using Nginx to serve Multi-tenant app with HTTPS

We have a multi-tenant application (dotnet core + Angular), the main website url for https://example.com, The customers URLs are (http://cust1.example.com, http://cust2.example.com,……) If the customer need to use his own domain, he just need to redirect his to domain to our server, for example: Customer 1 has his own domain: customer1.com, so he will go to…

Details

How are keycodes decided?

Is there a key with a keyCode of 1? I’ve tried researching but could not find anything. What decides the keycodes of each key? Just wondering… var directions = { 37: “left”, 38: “up”, 39: “right”, 40: “down”, 87:”up”, 68:”right”, 83:”down”, 65:”left” }; Here it shows they keycodes of the left, right, up , down…

Details