senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. あじょぶじん@ご隠居管理 (azyobuzin@xxx.azyobuzi.net)'s status on Thursday, 23-Dec-2021 02:20:00 JST あじょぶじん@ご隠居管理 あじょぶじん@ご隠居管理
    throw std::logic_error(what_arg); 、 what_arg に渡した string はいつ解放されるの?になって気になって眠れなくなってしまった
    In conversation Thursday, 23-Dec-2021 02:20:00 JST from xxx.azyobuzi.net permalink
    • らりお・ザ・何らかの🈗然㊌ソムリエ repeated this.
    • あじょぶじん@ご隠居管理 (azyobuzin@xxx.azyobuzi.net)'s status on Thursday, 23-Dec-2021 02:20:00 JST あじょぶじん@ご隠居管理 あじょぶじん@ご隠居管理
      in reply to
      そもそもこの引数 const string& なので、動的に作った string を渡してはいけない? じゃあ vector.at の例外はどうやって作ってるんだ?
      In conversation Thursday, 23-Dec-2021 02:20:00 JST permalink
      らりお・ザ・何らかの🈗然㊌ソムリエ repeated this.
    • あじょぶじん@ご隠居管理 (azyobuzin@xxx.azyobuzi.net)'s status on Thursday, 23-Dec-2021 02:27:49 JST あじょぶじん@ご隠居管理 あじょぶじん@ご隠居管理
      in reply to
      これを見る限り catch したら use after free じゃないですか? https://github.com/microsoft/STL/blob/303df3dae6f5ed9fe4f1c35257f663af8355584a/stl/inc/stdexcept#L25
      In conversation Thursday, 23-Dec-2021 02:27:49 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: opengraph.githubassets.com
        STL/stdexcept at 303df3dae6f5ed9fe4f1c35257f663af8355584a · microsoft/STL
        MSVC's implementation of the C++ Standard Library. - STL/stdexcept at 303df3dae6f5ed9fe4f1c35257f663af8355584a · microsoft/STL
      らりお・ザ・何らかの🈗然㊌ソムリエ repeated this.
    • あじょぶじん@ご隠居管理 (azyobuzin@xxx.azyobuzi.net)'s status on Thursday, 23-Dec-2021 02:27:49 JST あじょぶじん@ご隠居管理 あじょぶじん@ご隠居管理
      in reply to
      rvalue な string を渡すの、みんなやっとるな。これ合法? それとも運よく動いてるだけなのか? https://stackoverflow.com/questions/12261915/how-to-throw-stdexceptions-with-variable-messages
      In conversation Thursday, 23-Dec-2021 02:27:49 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: cdn.sstatic.net
        How to throw std::exceptions with variable messages?
        This is an example of what I often do when I want to add some information to an exception: std::stringstream errMsg; errMsg << "Could not load config file '" << configfile << "'";

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.