c++ - malloc'd memory overlaps object created by std::make_shared -
a call malloc returning pointer block of memory overlaps memory allocated make_shared. i'm building fuse client, , malloc call in fuse library, i'm not sure that's relevant. wasn't able reproduce error outside program, , i've got no idea next. valgrind doesn't find errors until pointer in object managed shared_ptr corrupted , used.
this bug result of creating shared_ptr new, typecasting weak_ptr , deleting it. have typecast because i'm using c library (fuse) , passing pointer weak_ptr, , provides uint64_t store handle. library calls functions , passes them struct containing pointer typecast uint64_t.
Comments
Post a Comment