Turns out that valgrind has issues with strings that don't fall on nice 4-byte alignments with some optimized builds. So make the default security credential a nice 7-characters (so we get 8-bytes with the NULL terminator) to make valgrind shut up.
Thanks to Walter Spector for reporting this. cmr=v1.8.2:reviewer=jsquyres:subject=align the default sec credential This commit was SVN r31873.
Этот коммит содержится в:
родитель
af5399ab5b
Коммит
7480a680e3
@ -69,7 +69,11 @@ static int get_my_cred(int dstorehandle,
|
||||
if (OPAL_SUCCESS == opal_dstore.fetch(dstorehandle, my_id, OPAL_DSTORE_CREDENTIAL, &vals)) {
|
||||
kv = (opal_value_t*)opal_list_remove_first(&vals);
|
||||
if (NULL == kv) {
|
||||
my_cred.credential = strdup("12345");
|
||||
/* make the default credential 7-bytes long so we hit a nice
|
||||
* 8-byte alignment (including NULL terminator) to keep valgrind
|
||||
* from barking in optimized builds
|
||||
*/
|
||||
my_cred.credential = strdup("1234567");
|
||||
my_cred.size = strlen(my_cred.credential)+1; // include the NULL
|
||||
} else {
|
||||
my_cred.credential = strdup(kv->data.string);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user