From: Louie, J. D <jos...@in...> - 2012-06-26 17:35:44
|
Hi, I found an issue when I tried to create a shared memory 2G or larger would result in failure during restore. That sounded suspiciously like a usage of a signed int, cause 2G - a little worked just fine. I modified locally and it worked for my test case, just wanted to pass this along for owners to either double check and integrate or do whatever for an official fix. sysvipc.cpp: ShmSegment::ShmSegment(key_t key, int size, int shmflg, int shmid) should use size_t for size sysvipc.h: ShmSegment::ShmSegment(key_t key, int size, int shmflg, int shmid) should use size_t for size Private field _size should be a size_t instead of an int Joshua Louie |