TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

GCC Poison

89 点作者 glazskunrukitis超过 11 年前

9 条评论

MBlume超过 11 年前
Somewhat off-topic, but I can&#x27;t use my back-button to get off this page.<p>Can we please, please stop breaking shit that worked just fine in &#x27;95?<p><a href="http://motherfuckingwebsite.com/" rel="nofollow">http:&#x2F;&#x2F;motherfuckingwebsite.com&#x2F;</a>
评论 #6844066 未加载
评论 #6845367 未加载
评论 #6843993 未加载
评论 #6844467 未加载
评论 #6844051 未加载
评论 #6844278 未加载
评论 #6843872 未加载
评论 #6844451 未加载
评论 #6843832 未加载
eliasmacpherson超过 11 年前
I never liked those microsoft functions, and disable all the warnings in each new project. What are you supposed to use instead of memcpy? It&#x27;s a bit of a rant but I find myself in agreement with this:<p><a href="http://unspecified.wordpress.com/2009/05/16/microsoft-bans-memcpy/" rel="nofollow">http:&#x2F;&#x2F;unspecified.wordpress.com&#x2F;2009&#x2F;05&#x2F;16&#x2F;microsoft-bans-m...</a>
评论 #6844177 未加载
评论 #6844309 未加载
CJefferson超过 11 年前
This header would be much more useful if it suggested safe alternatives for each of the functions it poisions
评论 #6844490 未加载
评论 #6843800 未加载
dfox超过 11 年前
While there is probably no meaningful use for gets() (which is missing from that list and certainly is not Win32 specific) and maybe sprintf() and even more maybe strcat(), what is exactly so insecure about things like memcpy() or alloca()?
评论 #6844485 未加载
评论 #6844164 未加载
yalue超过 11 年前
I am actually happy that gcc doesn&#x27;t find it important to support a library that prevents its users from using functions that are clearly defined in the specification of the language it supports.
评论 #6844678 未加载
评论 #6846208 未加载
hk__2超过 11 年前
I’m currently doing a school project in C and we wrote a shell script to check every source file for these insecure functions. It displays a warning and suggest you a more secure alternative function.
aidenn0超过 11 年前
this site is unusable on my phone.the sidebar dominates the screen.
评论 #6843880 未加载
评论 #6843962 未加载
MichaelMoser123超过 11 年前
It turns out there is a project - the safe C library - that implements strcpy_s and friends as an open source library (MIT license). so this header can be used with the Safe C library.<p><a href="https://sourceforge.net/projects/safeclib/" rel="nofollow">https:&#x2F;&#x2F;sourceforge.net&#x2F;projects&#x2F;safeclib&#x2F;</a>
评论 #6847184 未加载
jhhn超过 11 年前
Good! I had never ignored that unsafe notices from visual studio console.