[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH for-4.13] xen/xsm: flask: Check xmalloc_array() return in security_sid_to_context()


  • To: Julien Grall <julien.grall@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
  • Date: Fri, 4 Oct 2019 13:57:56 -0400
  • Cc: jgross@xxxxxxxx
  • Delivery-date: Fri, 04 Oct 2019 17:58:28 +0000
  • Ironport-phdr: 9a23:VftvzxCil6aB+owIZGmUUyQJP3N1i/DPJgcQr6AfoPdwSPX8r8bcNUDSrc9gkEXOFd2Cra4d0KyL6uu5ADZIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfL1/IA+2oAnMucUanJZuJrgswRbVv3VEfPhby3l1LlyJhRb84cmw/J9n8ytOvv8q6tBNX6bncakmVLJUFDspPXw7683trhnDUBCA5mAAXWUMkxpHGBbK4RfnVZrsqCT6t+592C6HPc3qSL0/RDqv47t3RBLulSwKLCAy/n3JhcNsjaJbuBOhqAJ5w47Ie4GeKf5ycrrAcd8GWWZNW8BcWCJbAoO4coABEewPM+hFpIX5vlcDox+zCQyqCejyyDFHm2X20LUn3eo/HwHI3AsgEdEAvnvao9r6NrsdX++uwanUzzjOde9a1Svz5YXKdB0qvPGCXah3ccrU0UQhGRnKjlORqYP7OzOey+oDvHaG5ORhT+KgkXQoqw9sqTWo28gshZTGiZwaylDe7yp025o1JN2kR057Zt6oCp1QtzqAOIdsTcMiRH9otT88x7YbupC7ZDAHxIkoyhPQcfCKc5WE7gj9WOuePzt0nm9pdbSijBio60eg0PfzVsys3VZPqSpKj8fDu2gW1xzW9siHUvx9/lq92TqX1wDc9OVEIUcsmKrHMZEh2L8wlocIsUjZAi/3mFn5jK+Rdkk+/Oin9//nban8qp+ZNo90jhnyMqUomsOhHeQ1KhUCUmeU9Oim1LDv4Ff1TKtFg/EoiKXVrYjWJcEBqa64Bw9V3Jwj6xG6Dzq+zdsYkmQII0xKeBKdlYfkIE3OIfDkAve/hFSgijFrx+vcMbH7DZXNKWbDnK/7fblh805c1BYzzddH6pJWF7EBJPPzVVH3tNDCAR85KRa7w+LjCNhmzIweQ2ePDrWFP6PVtF+C/vgvLPWUZI8JpDb9LOAo5vHwgn8/gFMSYLem3YUJZ3C8BflmJ0SZYWHwgtcaC2sLsRQxTOryiF2YVj5TZWi9UL4g5j0hD4KmF4jDTJi3gLOdxCe7AoFWZmdeB1COHnfobYKEW+wXaC+JOc9hjycEWqa7R4A90hGusVyy970yDPfQ+yAe/b353dxxr7nRiBUz+DoyAN6U12WlRntx2GgPQmlylLBypwlxx0mO1YB8gudEDppD6vVRSAA4OJXAietgBIPcQAXEK/uATlerRp2KDHkeVNs4zZdab0lxFtq4hzjfziGqBPkTjLXNC5sqpPGPl0PtLtpwni6VnJIqiEMrF44Wbjyr
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 10/4/19 12:56 PM, Julien Grall wrote:
xmalloc_array() may return NULL if there are memory. Rather than trying
to deference it directly, we should check the return value first.

Coverity-ID: 1381852
Signed-off-by: Julien Grall <julien.grall@xxxxxxx>
Acked-by: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.