Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IARV64 results need to be checked for 0x7FFFF000 #475

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Zowe Common C Changelog

## `2.18.1`
- Bugfix: IARV64 results must be checked for 0x7FFFF000 (#474)

## `2.18.0`
- Minor `components.zss.logLevels._zss.httpserver=5` debug messages enhancement (#471)

Expand Down
14 changes: 12 additions & 2 deletions c/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,12 @@ static char* __ptr64 getmain64(long long sizeInMegabytes, int *returnCode, int *

if (returnCode) *returnCode = macroRetCode;
if (reasonCode) *reasonCode = macroResCode;


// IARV64 returns 0x7FFFF000 when MEMLIMIT is reached
if (data == (void *)0x7FFFF000) {
data = NULL;
}

return data;

}
Expand All @@ -202,7 +207,12 @@ static char* __ptr64 getmain64ByToken(long long sizeInMegabytes, long long token

if (returnCode) *returnCode = macroRetCode;
if (reasonCode) *reasonCode = macroResCode;


// IARV64 returns 0x7FFFF000 when MEMLIMIT is reached
if (data == (void *)0x7FFFF000) {
data = NULL;
}

return data;

}
Expand Down
Loading