Fix segmentation fault from calling from_string with a non-string #173

Closed
wants to merge 1 commit into from

2 participants

@jferris
  • Calling BSON::ObjectId.from_string with a BSON::ObjectId segfaulted
  • C function attempted to use BSON::ObjectId as a String
  • Adds separate check/exception for non-String arguments
@jferris jferris Fix segmentation fault from calling from_string with a non-string
* Calling BSON::ObjectId.from_string with a BSON::ObjectId segfaulted
* C function attempted to use BSON::ObjectId as a String
* Adds separate check/exception for non-String arguments
00f2838
@brandonblack

Thanks! Pulled and merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment