Projects
Eulaceura:Mainline
lpg
_service:obs_scm:lpg-segfault.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:lpg-segfault.patch of Package lpg
--- lpg-generator-cpp/src/tuple.h.orig 2014-06-16 17:25:54.678811180 +0100 +++ lpg-generator-cpp/src/tuple.h 2014-06-16 17:29:37.832188144 +0100 @@ -49,7 +49,10 @@ if (new_size > size) { T *old_info = info; - info = (T *) memmove(new T[new_size], old_info, size * sizeof(T)); + if (size > 0) + info = (T *) memmove(new T[new_size], old_info, size * sizeof(T)); + else + info = (T *) new T[new_size]; delete [] old_info; } size = new_size;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2