diff options
author | Alex Xu (Hello71) | 2020-08-01 14:50:49 -0400 |
---|---|---|
committer | Alex Xu (Hello71) | 2020-08-07 09:34:31 -0400 |
commit | 837f02072fd33d44b83179638acdb2eba62785b2 (patch) | |
tree | 3bdaa7a962597f8e974ae96718050733b63da87f /omr-omrstr-iconv-failure-overflow.patch | |
download | aur-837f02072fd33d44b83179638acdb2eba62785b2.tar.gz |
Initial commit
Diffstat (limited to 'omr-omrstr-iconv-failure-overflow.patch')
-rw-r--r-- | omr-omrstr-iconv-failure-overflow.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/omr-omrstr-iconv-failure-overflow.patch b/omr-omrstr-iconv-failure-overflow.patch new file mode 100644 index 000000000000..f90c431c98af --- /dev/null +++ b/omr-omrstr-iconv-failure-overflow.patch @@ -0,0 +1,13 @@ +diff --git a/port/common/omrstr.c b/port/common/omrstr.c +index ad76cdf93..f936f0026 100644 +--- a/port/common/omrstr.c ++++ b/port/common/omrstr.c +@@ -3121,7 +3121,7 @@ convertPlatformToWide(struct OMRPortLibrary *portLibrary, charconvState_t encodi + } else if (E2BIG == errno) { + resultSize = (outBufferSize - wideBufferLimit); /* number of bytes written */ + } else { +- resultSize = OMRPORT_ERROR_STRING_ILLEGAL_STRING; ++ return OMRPORT_ERROR_STRING_ILLEGAL_STRING; + } + } else { + resultSize = (outBufferSize - wideBufferLimit); /* number of bytes written */ |