[Bug 1763591] [NEW] dlmopen glib2.0 crashed in g_variant_lookup_value
bin
1763591 at bugs.launchpad.net
Fri Apr 13 06:51:03 UTC 2018
Public bug reported:
when dlmopen glib2.0 and the program is linked with pthread, glib2.0 crashed in g_variant_lookup_value when dlmopen with
LM_ID_NEWLM
following is the poc:
#define _GNU_SOURCE
#include <dlfcn.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char*argv[])
{
char buf[4096] = {0};
pthread_attr_t attr;
pthread_attr_init(&attr);
snprintf(buf, sizeof(buf), "/lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2");
dlmopen(-1, buf, RTLD_NOW|RTLD_LOCAL);
return 0;
}
** Affects: glib2.0 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1763591
Title:
dlmopen glib2.0 crashed in g_variant_lookup_value
Status in glib2.0 package in Ubuntu:
New
Bug description:
when dlmopen glib2.0 and the program is linked with pthread, glib2.0 crashed in g_variant_lookup_value when dlmopen with
LM_ID_NEWLM
following is the poc:
#define _GNU_SOURCE
#include <dlfcn.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char*argv[])
{
char buf[4096] = {0};
pthread_attr_t attr;
pthread_attr_init(&attr);
snprintf(buf, sizeof(buf), "/lib/x86_64-linux-gnu/libglib-2.0.so.0.4800.2");
dlmopen(-1, buf, RTLD_NOW|RTLD_LOCAL);
return 0;
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/1763591/+subscriptions
More information about the foundations-bugs
mailing list