krb5: Reduce storage max_alloc

This commit is contained in:
Nicolas Williams
2023-01-04 16:17:09 -06:00
parent ae4ccb87da
commit 45cd575d83
5 changed files with 6 additions and 6 deletions

View File

@@ -217,6 +217,6 @@ krb5_storage_emem(void)
sp->trunc = emem_trunc;
sp->fsync = NULL;
sp->free = emem_free;
sp->max_alloc = UINT_MAX/8;
sp->max_alloc = UINT32_MAX/64;
return sp;
}

View File

@@ -195,6 +195,6 @@ krb5_storage_from_fd(int fd_in)
sp->trunc = fd_trunc;
sp->fsync = fd_sync;
sp->free = fd_free;
sp->max_alloc = UINT_MAX/8;
sp->max_alloc = UINT32_MAX/64;
return sp;
}

View File

@@ -147,7 +147,7 @@ krb5_storage_from_mem(void *buf, size_t len)
sp->trunc = mem_trunc;
sp->fsync = NULL;
sp->free = NULL;
sp->max_alloc = UINT_MAX/8;
sp->max_alloc = UINT32_MAX/64;
return sp;
}
@@ -207,6 +207,6 @@ krb5_storage_from_readonly_mem(const void *buf, size_t len)
sp->trunc = mem_no_trunc;
sp->fsync = NULL;
sp->free = NULL;
sp->max_alloc = UINT_MAX/8;
sp->max_alloc = UINT32_MAX/64;
return sp;
}

View File

@@ -155,6 +155,6 @@ krb5_storage_from_socket(krb5_socket_t sock_in)
sp->trunc = socket_trunc;
sp->fsync = socket_sync;
sp->free = socket_free;
sp->max_alloc = UINT_MAX/8;
sp->max_alloc = UINT32_MAX/64;
return sp;
}

View File

@@ -259,6 +259,6 @@ krb5_storage_stdio_from_fd(int fd_in, const char *mode)
sp->trunc = stdio_trunc;
sp->fsync = stdio_sync;
sp->free = stdio_free;
sp->max_alloc = UINT_MAX/8;
sp->max_alloc = UINT32_MAX/64;
return sp;
}