Skip to content
Snippets Groups Projects
Commit a76358f3 authored by Steven Murray's avatar Steven Murray Committed by Steven Murray
Browse files

bug #96536: rmlabelinfo() of tape/initlabel.c corrupts memory if called more than once

In order to improve logging for tape-operations and to facilitate the current
testing surrounding this bug, the serrno code of ENOMEM has been replaced by
the more specific error ETNOLBLINFOMEM meaning "No memory available for label
information" within the setlabelinfo function.
parent cc2a697a
No related branches found
No related tags found
No related merge requests found
......@@ -341,6 +341,7 @@ char *sys_terrlist[ETMAXERR-ETBASEOFF+2] =
"castor::tape::net::acceptConnection interrupted",
"Label information not found in memory",
"Multi-drive reservations are not supported",
"No memory available for label information",
"BAD ERROR NUMBER"
};
......
......@@ -345,7 +345,8 @@
#define ETNETACCEPTINTR ETBASEOFF+34 /* castor::tape::net::acceptConnection interrupted */
#define ETNOLBLINFO ETBASEOFF+35 /* Label information not found in memory */
#define ETMLTDRVRSV ETBASEOFF+36 /* Multi-drive reservations are not supported */
#define ETMAXERR ETBASEOFF+36
#define ETNOLBLINFOMEM ETBASEOFF+37 /* No memory available for label information */
#define ETMAXERR ETBASEOFF+37
/*
*------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment