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

fix #2149 (backport to stable) #2150

Merged
merged 2 commits into from
May 6, 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
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# Changelog
All notable changes to Ergo will be documented in this file.

## [2.13.1] - 2024-05-06

Ergo 2.13.1 is a bugfix release, fixing an exploitable deadlock that could lead to a denial of service. We regret the oversight.

This release includes no changes to the config file format or database format.

### Security

* Fixed an exploitable deadlock that could lead to a denial of service (#2149)

### Internal

* Official release builds use Go 1.22.2


## [2.13.0] - 2024-01-14

We're pleased to be publishing v2.13.0, a new stable release. This is a bugfix release that fixes some issues, including a crash.
Expand Down
8 changes: 5 additions & 3 deletions irc/getters.go
Original file line number Diff line number Diff line change
Expand Up @@ -616,9 +616,11 @@ func (channel *Channel) Founder() string {

func (channel *Channel) HighestUserMode(client *Client) (result modes.Mode) {
channel.stateMutex.RLock()
clientModes := channel.members[client].modes
channel.stateMutex.RUnlock()
return clientModes.HighestChannelUserMode()
defer channel.stateMutex.RUnlock()
if clientData, ok := channel.members[client]; ok {
return clientData.modes.HighestChannelUserMode()
}
return
}

func (channel *Channel) Settings() (result ChannelSettings) {
Expand Down
2 changes: 1 addition & 1 deletion irc/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "fmt"

const (
// SemVer is the semantic version of Ergo.
SemVer = "2.13.0"
SemVer = "2.13.1"
)

var (
Expand Down
Loading