Skip to content

Commit

Permalink
Bug 1782740 - Update to NSPR 4.34.1 RTM. r=bbeurdouche UPGRADE_NSPR_R…
Browse files Browse the repository at this point in the history
…ELEASE

Differential Revision: https://phabricator.services.mozilla.com/D153800
  • Loading branch information
kaie committed Aug 5, 2022
1 parent 4157897 commit 965d146
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion nsprpub/TAG-INFO
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NSPR_4_34_RTM
NSPR_4_34_1_RTM
2 changes: 1 addition & 1 deletion nsprpub/configure
Original file line number Diff line number Diff line change
Expand Up @@ -2487,7 +2487,7 @@ test -n "$target_alias" &&
MOD_MAJOR_VERSION=4
MOD_MINOR_VERSION=34
MOD_PATCH_VERSION=0
MOD_PATCH_VERSION=1
NSPR_MODNAME=nspr20
_HAVE_PTHREADS=
USE_PTHREADS=
Expand Down
2 changes: 1 addition & 1 deletion nsprpub/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dnl = Defaults
dnl ========================================================
MOD_MAJOR_VERSION=4
MOD_MINOR_VERSION=34
MOD_PATCH_VERSION=0
MOD_PATCH_VERSION=1
NSPR_MODNAME=nspr20
_HAVE_PTHREADS=
USE_PTHREADS=
Expand Down
4 changes: 2 additions & 2 deletions nsprpub/pr/include/prinit.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ PR_BEGIN_EXTERN_C
** The format of the version string is
** "<major version>.<minor version>[.<patch level>] [<Beta>]"
*/
#define PR_VERSION "4.34"
#define PR_VERSION "4.34.1"
#define PR_VMAJOR 4
#define PR_VMINOR 34
#define PR_VPATCH 0
#define PR_VPATCH 1
#define PR_BETA PR_FALSE

/*
Expand Down
7 changes: 6 additions & 1 deletion nsprpub/pr/src/md/unix/unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -3641,7 +3641,8 @@ int poll(struct pollfd *filedes, unsigned long nfds, int timeout)
int events = filedes[i].events;
PRBool fdHasEvent = PR_FALSE;

if (osfd < 0) {
PR_ASSERT(osfd < FD_SETSIZE);
if (osfd < 0 || osfd >= FD_SETSIZE) {
continue; /* Skip this osfd. */
}

Expand Down Expand Up @@ -3686,6 +3687,10 @@ int poll(struct pollfd *filedes, unsigned long nfds, int timeout)
if (filedes[i].fd < 0) {
continue;
}
if (filedes[i].fd >= FD_SETSIZE) {
filedes[i].revents |= POLLNVAL;
continue;
}
if (FD_ISSET(filedes[i].fd, &rd)) {
if (filedes[i].events & POLLIN) {
filedes[i].revents |= POLLIN;
Expand Down
4 changes: 2 additions & 2 deletions nsprpub/pr/tests/vercheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static char *compatible_version[] = {
"4.10.10", "4.11", "4.12", "4.13", "4.14", "4.15",
"4.16", "4.17", "4.18", "4.19", "4.20", "4.21", "4.22",
"4.23", "4.24", "4.25", "4,26", "4.27", "4.28", "4.29",
"4.30", "4.31", "4.32", "4.33",
"4.30", "4.31", "4.32", "4.33", "4.34",
PR_VERSION
};

Expand All @@ -58,7 +58,7 @@ static char *incompatible_version[] = {
"3.0", "3.0.1",
"3.1", "3.1.1", "3.1.2", "3.1.3",
"3.5", "3.5.1",
"4.34.1",
"4.34.2",
"4.35", "4.35.1",
"10.0", "11.1", "12.14.20"
};
Expand Down

0 comments on commit 965d146

Please sign in to comment.