Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Synchronet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
127
Issues
127
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main
Synchronet
Compare Revisions
5379321a722821aab964b2ab17854ac4e8aef851...9d05c7f8f1173f07b16f2b0c9a72114568166f59
Source
9d05c7f8f1173f07b16f2b0c9a72114568166f59
Select Git revision
...
Target
5379321a722821aab964b2ab17854ac4e8aef851
Select Git revision
Compare
Commits (3)
Resolve more Coverity issues
· 91531c3e
Rob Swindell
authored
Feb 15, 2021
91531c3e
Merge remote-tracking branch 'origin/master'
· 35d07d85
Rob Swindell
authored
Feb 15, 2021
35d07d85
Oops
· 9d05c7f8
Rob Swindell
authored
Feb 15, 2021
9d05c7f8
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
4 deletions
+17
-4
src/sbbs3/js_socket.c
src/sbbs3/js_socket.c
+1
-1
src/sbbs3/js_uifc.c
src/sbbs3/js_uifc.c
+1
-0
src/sbbs3/main.cpp
src/sbbs3/main.cpp
+1
-0
src/sbbs3/sbbs.zip
src/sbbs3/sbbs.zip
+0
-0
src/sbbs3/scfg/scfgnet.c
src/sbbs3/scfg/scfgnet.c
+1
-1
src/sbbs3/writemsg.cpp
src/sbbs3/writemsg.cpp
+12
-2
src/xpdev/xpmap.c
src/xpdev/xpmap.c
+1
-0
No files found.
src/sbbs3/js_socket.c
View file @
9d05c7f8
...
...
@@ -2749,7 +2749,7 @@ js_listening_socket_constructor(JSContext *cx, uintN argc, jsval *arglist)
uint16_t
port
;
jsrefcount
rc
;
scfg_t
*
scfg
;
struct
xpms_set
*
set
;
struct
xpms_set
*
set
=
NULL
;
struct
ls_cb_data
cb
;
jsuint
count
;
int
i
;
...
...
src/sbbs3/js_uifc.c
View file @
9d05c7f8
...
...
@@ -854,6 +854,7 @@ js_uifc_list(JSContext *cx, uintN argc, jsval *arglist)
return
(
JS_FALSE
);
for
(;
argn
<
argc
;
argn
++
)
{
if
(
JSVAL_IS_STRING
(
argv
[
argn
]))
{
free
(
title
);
JSVALUE_TO_MSTRING
(
cx
,
argv
[
argn
],
title
,
NULL
);
HANDLE_PENDING
(
cx
,
title
);
continue
;
...
...
src/sbbs3/main.cpp
View file @
9d05c7f8
...
...
@@ -3522,6 +3522,7 @@ sbbs_t::sbbs_t(ushort node_num, union xp_sockaddr *addr, size_t addr_len, const
getstr_offset
=
0
;
lastnodemsg
=
0
;
xtrn_mode
=
0
;
last_ns_time
=
0
;
}
//****************************************************************************
...
...
src/sbbs3/sbbs.zip
deleted
100644 → 0
View file @
5379321a
File deleted
src/sbbs3/scfg/scfgnet.c
View file @
9d05c7f8
...
...
@@ -135,7 +135,7 @@ uint getsub(void)
opt
[
k
][
0
]
=
0
;
sprintf
(
str
,
"Select %s Sub-board"
,
cfg
.
grp
[
i
]
->
sname
);
j
=
uifc
.
list
(
WIN_RHT
|
WIN_BOT
|
WIN_SAV
,
0
,
0
,
45
,
&
sub_dflt
,
&
sub_bar
,
str
,
opt
);
if
(
j
==-
1
||
j
>=
cfg
.
total_subs
)
if
(
j
==-
1
||
j
>=
k
)
continue
;
sub_dflt
++
;
sub_bar
++
;
...
...
src/sbbs3/writemsg.cpp
View file @
9d05c7f8
...
...
@@ -632,14 +632,24 @@ bool sbbs_t::writemsg(const char *fname, const char *top, char *subj, long mode,
return
(
false
);
}
length
=
(
long
)
filelength
(
file
);
if
(
length
<
0
)
{
errormsg
(
WHERE
,
ERR_LEN
,
msgtmp
,
length
);
free
(
buf
);
return
false
;
}
l
=
strlen
((
char
*
)
buf
);
/* reserve space for top and terminating null */
/* truncate if too big */
if
(
length
>
(
long
)((
cfg
.
level_linespermsg
[
useron_level
]
*
MAX_LINE_LEN
)
-
(
l
+
1
)))
{
length
=
(
cfg
.
level_linespermsg
[
useron_level
]
*
MAX_LINE_LEN
)
-
(
l
+
1
);
bputs
(
text
[
OutOfBytes
]);
}
lread
(
file
,
buf
+
l
,
length
);
l
ong
rd
=
read
(
file
,
buf
+
l
,
length
);
close
(
file
);
if
(
rd
!=
length
)
{
errormsg
(
WHERE
,
ERR_READ
,
msgtmp
,
length
);
free
(
buf
);
return
false
;
}
// remove(msgtmp); /* no need to save the temp input file */
buf
[
l
+
length
]
=
0
;
}
...
...
@@ -845,7 +855,7 @@ void sbbs_t::removeline(char *str, char *str2, char num, char skip)
errormsg
(
WHERE
,
ERR_ALLOC
,
str
,
flen
);
return
;
}
if
(
l
read
(
file
,
buf
,
flen
)
!=
flen
)
{
if
(
read
(
file
,
buf
,
flen
)
!=
flen
)
{
close
(
file
);
errormsg
(
WHERE
,
ERR_READ
,
str
,
flen
);
free
(
buf
);
...
...
src/xpdev/xpmap.c
View file @
9d05c7f8
...
...
@@ -133,6 +133,7 @@ struct xpmapping* DLLCALL xpmap(const char *filename, enum xpmap_type type)
ret
=
(
struct
xpmapping
*
)
malloc
(
sizeof
(
struct
xpmapping
));
if
(
ret
==
NULL
)
{
CloseHandle
(
md
);
UnmapViewOfFile
(
addr
);
return
NULL
;
}
ret
->
addr
=
addr
;
...
...